XINPUT_STATE
Describes the state of a controller.
Syntax
typedef struct XINPUT_STATE {
DWORD dwPacketNumber;
XINPUT_GAMEPAD Gamepad;
} XINPUT_STATE
Members
dwPacketNumber
Type: DWORD
State packet number. The packet number indicates whether the state of the controller has changed. If the value is the same in sequentially returned XINPUT_STATE
objects, the controller state has not changed.
Gamepad
Type: XINPUT_GAMEPAD
XINPUT_GAMEPAD object that contains the current state of a controller.
Remarks
The value of dwPacketNumber is incremented only if the state of the controller changed since the controller was last polled.
This structure is used by the XInputGetState and XInputGetStateWithToken functions.
For more information, see The XInputOnGameInput wrapper.
Requirements
Header: XInputOnGameInput.h
Supported platforms: Xbox One family consoles and Xbox Series consoles