XNA Game Studio 3.0
Sets the vibration motor speeds on an Xbox 360 Controller.
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
public static bool SetVibration ( PlayerIndex playerIndex, float leftMotor, float rightMotor )
- Player index that identifies the controller to set.
- The speed of the left motor, between 0.0 and 1.0. This motor is a low-frequency motor.
- The speed of the right motor, between 0.0 and 1.0. This motor is a high-frequency motor.
true if the vibration motors were successfully set; false if the controller was unable to process the request.
|InvalidOperationException||An unknown error has occurred. Verify that the correct playerIndex is being requested.|