A snapshot of the state of a controller.
typedef struct GAMEPAD_REPORT {
UINT16 Buttons;
UINT16 LeftTrigger;
UINT16 RightTrigger;
INT16 LeftThumbstickX;
INT16 LeftThumbstickY;
INT16 RightThumbstickX;
INT16 RightThumbstickY;
} GAMEPAD_REPORT, *PGAMEPAD_REPORT;
Buttons
A combination of GAMEPAD_BUTTONS flag values that represent the state of the buttons on the controller.
LeftTrigger
Value between 0 and 1023 that indicates how far the left trigger is pulled.
RightTrigger
Value between 0 and 1023 that indicates how far the right trigger is pulled.
LeftThumbstickX
Value between -32768 and 32767 that indicates the position of the left thumbstick on the x-axis.
LeftThumbstickY
Value between -32768 and 32767 that indicates the position of the left thumbstick on the y-axis.
RightThumbstickX
Value between -32768 and 32767 that indicates the position of the right thumbstick on the x-axis.
RightThumbstickY
Value between -32768 and 32767 that indicates the position of the right thumbstick on the y-axis.
Header: Declared in xtfinput.h.
Library: Use xtfinput.lib.