extern static uint XInputGetState( int index, // [in] Index of the gamer associated with the device out XInputState state // [out] Receives the current state );
// Poll the state of the controller's buttons, thumbsticks, and triggers public static void GetState(int controllerNumber, out XInputState state) { XInputMethods.ProcessResult( XInputMethods.XInputGetState(controllerNumber, out state) ); }
public bool Equals(XInputState rhs) { return PacketNumber == rhs.PacketNumber && Gamepad.Equals(rhs.Gamepad); }
public bool Equals(XInputState rhs) { return(PacketNumber == rhs.PacketNumber && Gamepad.Equals(rhs.Gamepad)); }