예제 #1
0
 /// <summary>
 /// Sets the gamepad's large and small motors to the given amounts
 /// </summary>
 /// <param name="gamepad">The gamepad</param>
 /// <param name="largeMotors">The amount of vibration for the large motors</param>
 /// <param name="smallMotors">The amount of vibration for the small motors</param>
 public static void SetVibration(this IGamePadDevice gamepad, float largeMotors, float smallMotors)
 {
     gamepad.SetVibration(smallMotors, smallMotors, largeMotors, largeMotors);
 }
예제 #2
0
 /// <summary>
 /// Sets all the gamepad vibration motors to the same amount
 /// </summary>
 /// <param name="gamepad">The gamepad</param>
 /// <param name="amount">The amount of vibration</param>
 public static void SetVibration(this IGamePadDevice gamepad, float amount)
 {
     gamepad.SetVibration(amount, amount, amount, amount);
 }