XINPUT_STATE
Represents the state of a controller.
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 an Xbox 360 Controller.
Remarks
The dwPacketNumber member is incremented only if the status of the controller has changed since the controller was last polled.
Requirements
Header: Declared in XInput.h.
See Also
XInput Structures |
XInputGetState,
XINPUT_GAMEPAD