If a controller supports haptic feedback, you can activate it using the following methods.
If you trigger a pulse while another one is already in progress, the strength and duration of the one that would finish last are honored.
Controller.triggerHapticPulse(strength, duration, hand)
The three parameters here are:
This method automatically trigger pulses of 250 ms
The two parameters here are:
The methods above will trigger pulses on all devices that can make them. If you'd like to specify the precise devices that will receive pulses, use the following methods:
Controller.triggerHapticPulseOnDevice(deviceID,strength, duration, hand) Controller.triggerShortHapticPulseOnDevice(deviceID, strength, hand)