The playEffect() method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect.
Optionalparams: GamepadEffectParametersThe reset() method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect.
The
GamepadHapticActuatorinterface 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