コード例 #1
0
ファイル: XInput.cs プロジェクト: jpires/gta2net
 public static int XInputGetState(
     int dwUserIndex, // [in] Index of the gamer associated with the device
     ref XInputState pState // [out] Receives the current state
     )
 {
     return IsWin8OrNewer ? XInput14.XInputGetState(dwUserIndex, ref pState) : XInput910.XInputGetState(dwUserIndex, ref pState);
 }
コード例 #2
0
ファイル: XInput.cs プロジェクト: peon501/GTA2.NET
 public static int XInputGetState
 (
     int dwUserIndex,       // [in] Index of the gamer associated with the device
     ref XInputState pState // [out] Receives the current state
 )
 {
     return(IsWin8OrNewer ? XInput14.XInputGetState(dwUserIndex, ref pState) : XInput910.XInputGetState(dwUserIndex, ref pState));
 }
コード例 #3
0
ファイル: XInputState.cs プロジェクト: oldrock674/wowmapper
        public override bool Equals(object obj)
        {
            if ((obj == null) || (!(obj is XInputState)))
            {
                return(false);
            }
            XInputState source = (XInputState)obj;

            return((PacketNumber == source.PacketNumber) &&
                   (Gamepad.Equals(source.Gamepad)));
        }
コード例 #4
0
ファイル: XInput.cs プロジェクト: Soreil/Rotalume
 internal static extern int XInputGetState
 (
     int dwUserIndex,       // [in] Index of the gamer associated with the device
     ref XInputState pState // [out] Receives the current state
 );
コード例 #5
0
 public void Copy(XInputState source)
 {
     PacketNumber = source.PacketNumber;
     Gamepad.Copy(source.Gamepad);
 }
コード例 #6
0
ファイル: XInput910.cs プロジェクト: spritefun/gta2net
 public static extern int XInputGetState(
     int dwUserIndex, // [in] Index of the gamer associated with the device
     ref XInputState pState // [out] Receives the current state
     );
コード例 #7
0
ファイル: XInputState.cs プロジェクト: jpires/gta2net
 public void Copy(XInputState source)
 {
     PacketNumber = source.PacketNumber;
      Gamepad.Copy(source.Gamepad);
 }
コード例 #8
0
 private static extern int XInputGetState9(int dwUserIndex, ref XInputState pState);
コード例 #9
0
 public int GetState(int dwUserIndex, ref XInputState pState)
 {
     switch (dllIndex)
     {
         case 0:
             return XInputGetState14(dwUserIndex, ref pState);
         case 1:
             return XInputGetState13(dwUserIndex, ref pState);
         case 2:
             return XInputGetState9(dwUserIndex, ref pState);
         default:
             return 0;
     }
 }