public final class XInputState
extends com.sun.jna.Structure
The dwPacketNumber member is incremented only if the status of the controller has changed since the controller was last polled.
| Header | XInput.h |
|---|
Source: Microsoft Documentation
XInput.XInputGetState(int, XInputState),
XInputGamepad| Modifier and Type | Field and Description |
|---|---|
int |
dwPacketNumber
State packet number.
|
XInputGamepad |
Gamepad
XInputGamepad structure containing the current state of an Xbox 360 Controller.
|
| Constructor and Description |
|---|
XInputState() |
autoRead, autoRead, autoWrite, autoWrite, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, newInstance, read, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toArray, toArray, toString, toString, write, writeField, writeFieldpublic int dwPacketNumber
dwPacketNumber member is the same in sequentially returned XInputState structures,
the controller state has not changed.
Source: Microsoft Documentation
public XInputGamepad Gamepad
Source: Microsoft Documentation