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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for