コード例 #1
0
 // Set the vibration speed of a controller
 public static void SetVibration(int controllerNumber, ushort leftSpeed, ushort rightSpeed)
 {
     XInputVibration vibe = new XInputVibration(leftSpeed, rightSpeed);
     XInputMethods.ProcessResult(
         XInputMethods.XInputSetState(controllerNumber, ref vibe)
         );
 }
コード例 #2
0
 static extern uint XInputSetState(
     int index,  // [in] Index of the gamer associated with the device
     ref XInputVibration vibration// [in, out] The vibration information to send to the controller
 );
コード例 #3
0
 extern static uint XInputSetState(
     int index,                    // [in] Index of the gamer associated with the device
     ref XInputVibration vibration // [in, out] The vibration information to send to the controller
     );