XINPUT_STATE structure (xinput.h)

Represents the state of a controller.

Syntax

typedef struct _XINPUT_STATE {
  DWORD          dwPacketNumber;
  XINPUT_GAMEPAD Gamepad;
} XINPUT_STATE, *PXINPUT_STATE;

Members

dwPacketNumber

State packet number. The packet number indicates whether there have been any changes in the state of the controller. If the dwPacketNumber member is the same in sequentially returned XINPUT_STATE structures, the controller state has not changed.

Gamepad

XINPUT_GAMEPAD structure containing the current state of a controller.

Remarks

The dwPacketNumber member is incremented only if the status of the controller has changed since the controller was last polled.

Requirements

Requirement Value
Header xinput.h

See also

XINPUT_GAMEPAD

XInput Structures

XInputGetState