Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XINPUT_STATE structure

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 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

XInput.h

See also

XInput Structures
XInputGetState
XINPUT_GAMEPAD

 

 

Community Additions

Show:
© 2014 Microsoft