This topic has not yet been rated - Rate this topic

XINPUT_STATE structure

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps | Metro style apps

Represents the state of a controller.

Syntax

typedef struct _XINPUT_STATE {
  DWORD  dwPacketNumber;
  XINPUT 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

 

 

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
XINPUT_GAMEPAD Gamepad
XINPUT Gamepad; on line 3 in the code snippet should be XINPUT_GAMEPAD Gamepad;