コード例 #1
0
ファイル: XInput.cs プロジェクト: jpires/gta2net
 public static int XInputSetState(
     int dwUserIndex, // [in] Index of the gamer associated with the device
     ref XInputVibration pVibration // [in, out] The vibration information to send to the controller
     )
 {
     return IsWin8OrNewer ? XInput14.XInputSetState(dwUserIndex, ref pVibration) : XInput910.XInputSetState(dwUserIndex, ref pVibration);
 }
コード例 #2
0
ファイル: XInput910.cs プロジェクト: spritefun/gta2net
 public static extern int XInputSetState(
     int dwUserIndex, // [in] Index of the gamer associated with the device
     ref XInputVibration pVibration // [in, out] The vibration information to send to the controller
     );
コード例 #3
0
ファイル: XInput.cs プロジェクト: v-svs/TcJoy
 public static extern int XInputSetState
 (
     int dwUserIndex,               // [in] Index of the gamer associated with the device
     ref XInputVibration pVibration // [in, out] The vibration information to send to the controller
 );
コード例 #4
0
 public void Vibrate(XInputVibration strength)
 {
     _stopMotorTimerActive = false;
     XInput.XInputSetState(_playerIndex, ref strength);
 }
コード例 #5
0
 private static extern int XInputSetState9(int dwUserIndex, ref XInputVibration pVibration);
コード例 #6
0
 public int SetState(int dwUserIndex, ref XInputVibration pVibration)
 {
     switch (dllIndex)
     {
         case 0:
             return XInputSetState14(dwUserIndex, ref pVibration);
         case 1:
             return XInputSetState13(dwUserIndex, ref pVibration);
         case 2:
             return XInputSetState9(dwUserIndex, ref pVibration);
         default:
             return 0;
     }
 }