Skip to main content

XINPUT_STATE

Describes the state of a controller.

Syntax

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

See also

Porting from XInput to GameInput
XInputOnGameInput
Last modified on August 20, 2026