Skip to main content

Struct GamepadInput

Struct which gets populated by polling the gamepads.

Has an array of gamepads, among many other things (here not mapped). All we really care about is the final data which the game uses to determine input.

The size is definitely bigger than only the following fields but I do not know how big.

Assembly: Dalamud.dll
View Source
Declaration
public struct GamepadInput

Fields

LeftStickX

Left analogue stick's horizontal value, -99 for left, 99 for right.

View Source
Declaration
public int LeftStickX

LeftStickY

Left analogue stick's vertical value, -99 for down, 99 for up.

View Source
Declaration
public int LeftStickY

RightStickX

Right analogue stick's horizontal value, -99 for left, 99 for right.

View Source
Declaration
public int RightStickX

RightStickY

Right analogue stick's vertical value, -99 for down, 99 for up.

View Source
Declaration
public int RightStickY

ButtonsRaw

Raw input, set the whole time while a button is held. See Dalamud.Game.ClientState.GamePad.GamepadButtons for the mapping.

View Source
Declaration
public ushort ButtonsRaw

ButtonsPressed

Button pressed, set once when the button is pressed. See Dalamud.Game.ClientState.GamePad.GamepadButtons for the mapping.

View Source
Declaration
public ushort ButtonsPressed

ButtonsReleased

Button released input, set once right after the button is not hold anymore. See Dalamud.Game.ClientState.GamePad.GamepadButtons for the mapping.

View Source
Declaration
public ushort ButtonsReleased

ButtonsRepeat

Repeatedly emits the held button input in fixed intervals. See Dalamud.Game.ClientState.GamePad.GamepadButtons for the mapping.

View Source
Declaration
public ushort ButtonsRepeat