The playEffect()
method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect.
Optional
params: GamepadEffectParametersThe reset()
method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect.
The
GamepadHapticActuator
interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.MDN Reference