XINPUT_STATE
Describes the state of a controller.Syntax
Members
dwPacketNumberType: 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.
GamepadType: 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 consolesSee also
Porting from XInput to GameInputXInputOnGameInput
