예제 #1
0
 extern static uint XInputGetState(
     int index,  // [in] Index of the gamer associated with the device
     out XInputState state // [out] Receives the current state
 );
예제 #2
0
 // 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)
         );
 }
예제 #3
0
 public bool Equals(XInputState rhs)
 {
     return PacketNumber == rhs.PacketNumber
             && Gamepad.Equals(rhs.Gamepad);
 }
예제 #4
0
파일: XInput.cs 프로젝트: pnolin/LiveSplit
 extern static uint XInputGetState(
     int index,            // [in] Index of the gamer associated with the device
     out XInputState state // [out] Receives the current state
     );
예제 #5
0
파일: XInput.cs 프로젝트: pnolin/LiveSplit
 // 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)
         );
 }
예제 #6
0
파일: XInput.cs 프로젝트: pnolin/LiveSplit
 public bool Equals(XInputState rhs)
 {
     return(PacketNumber == rhs.PacketNumber &&
            Gamepad.Equals(rhs.Gamepad));
 }