Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Sets the vibration motor speeds on a Joystick with rumble support. Most common gamepads have this functionality, although not all drivers give proper support. Use Joystick:isVibrationSupported to check.
success = Joystick:setVibration( left, right )
success = Joystick:setVibration( )
Available since LÖVE 0.9.2
This variant is not supported in earlier versions.
success = Joystick:setVibration( left, right, duration )
number duration (-1)
If the Joystick only has a single vibration motor, it will still work but it will use the largest value of the left and right parameters.
The Xbox 360 controller on Mac OS X only has support for vibration if a modified version of the Tattiebogle driver is used.
The very first call to this function may take more time than expected because SDL's Haptic / Force Feedback subsystem needs to be initialized.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.