Sets vibration on both motors for a specific duration.
Takes controller (Int), leftSpeed (Int from 0 to 65535), rightSpeed (Int from 0 to 65535), durationMs (Int in milliseconds).
Returns nothing.
Input
Parameters & Returns
Parameters
controllerInt
leftSpeedInt
rightSpeedInt
durationMsInt
Returns
Void
Quick Summary
Sets vibration on both motors for a specific duration.
Takes controller (Int), leftSpeed (Int from 0 to 65535), rightSpeed (Int from 0 to 65535), durationMs (Int in milliseconds).
Returns nothing.
Technical Exegesis...
Sets the vibration intensity for both the left and right motors of the controller, automatically stopping after the specified duration in milliseconds.
The speed values range from 0 to 65535, where 0 is no vibration and 65535 is maximum intensity. The left motor is typically the low-frequency rumble motor, while the right motor is the high-frequency vibration motor.
The vibration automatically stops after durationMs milliseconds. You can manually stop it earlier using inpStopVibration().
Sets the vibration intensity for both the left and right motors of the controller, automatically stopping after the specified duration in milliseconds.
The speed values range from 0 to 65535, where 0 is no vibration and 65535 is maximum intensity. The left motor is typically the low-frequency rumble motor, while the right motor is the high-frequency vibration motor.
The vibration automatically stops after durationMs milliseconds. You can manually stop it earlier using inpStopVibration().
The controller must be created with inpCreateController() before setting vibration. If the controller is invalid or not connected, the function silently fails.