pub type EOS_UI_ReportInputStateOptions = _tagEOS_UI_ReportInputStateOptions;Expand description
Input parameters for the EOS_UI_ReportInputState function.
Aliased Type§
#[repr(C)]pub struct EOS_UI_ReportInputStateOptions {Show 13 fields
pub ApiVersion: i32,
pub ButtonDownFlags: i32,
pub bAcceptIsFaceButtonRight: i32,
pub bMouseButtonDown: i32,
pub MousePosX: u32,
pub MousePosY: u32,
pub GamepadIndex: u32,
pub LeftStickX: f32,
pub LeftStickY: f32,
pub RightStickX: f32,
pub RightStickY: f32,
pub LeftTrigger: f32,
pub RightTrigger: f32,
}Fields§
§ApiVersion: i32API Version: Set this to EOS_UI_REPORTINPUTSTATE_API_LATEST.
ButtonDownFlags: i32Flags to identify the current buttons which are pressed.
bAcceptIsFaceButtonRight: i32Whether the current platform and configuration uses the right face button as the default accept button. When this flag is true, the right face button is the accept action, and the down face button is the cancel action. When this flag is false, the right face button is the cancel action, and the down face button is the accept action.
bMouseButtonDown: i32The current state of the mouse button.
MousePosX: u32The current x-position of the mouse.
MousePosY: u32The current y-position of the mouse.
GamepadIndex: u32The gamepad or player index
LeftStickX: f32Left analog stick horizontal movement in [-1, 1]. Negative for left, positive for right
LeftStickY: f32Left analog stick vertical movement in [-1, 1]. Negative for up, positive for down
RightStickX: f32Right analog stick horizontal movement in [-1, 1]. Negative for left, positive for right
RightStickY: f32Right analog stick vertical movement in [-1, 1]. Negative for up, positive for down
LeftTrigger: f32Left trigger analog value in [0, 1]
RightTrigger: f32Right trigger analog value in [0, 1]