SetGamepadVibration

From ESOUI Wiki

Jump to: navigation, search

This function can be used to make the gamepad vibrate for a given amount of time.

Contents

Arguments

durationMS
The duration in milliseconds.
firstMotor
How intensely the first motor should vibrate, from 0 to 1. For an Xbox One controller, this is the left motor.
secondMotor
How intensely the second motor should vibrate, from 0 to 1. For an Xbox One controller, this is the right motor.
thirdMotor
How intensely the third motor should vibrate, from 0 to 1. This motor doesn't exist on an Xbox One controller.
fourthMotor
How intensely the fourth motor should vibrate, from 0 to 1. This motor doesn't exist on an Xbox One controller.
debugSourceInfo
A string representing the source of the vibration, for debugging.

Example

--
-- Vibrate the left motor at full intensity for 0.2 seconds.
--
SetGamepadVibration(200, 1, 0, 0, 0, "Hi, Zenimax!")

Notes

Only one controller vibration can happen at a time. If you try to vibrate the left motor for five seconds, and then two seconds later, another SetGamepadVibration call tries to vibrate the right motor, then the left motor will stop vibrating immediately. Incidentally, this means that you can forcibly stop all controller vibration by vibrating the four motors at zero-intensity.

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox