Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

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
Was this helpful?