On this page

Interface GamepadHapticActuator

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

interface GamepadHapticActuator {
    playEffect(
        type: GamepadHapticEffectType,
        params?: GamepadEffectParameters,
    ): Promise<GamepadHapticsResult>;
    reset(): Promise<GamepadHapticsResult>;
}
Index

Methods

Was this helpful?
SDK JS
Reference
GamepadHapticActuator