Interface GamepadHapticActuator

This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.

MDN Reference

interface GamepadHapticActuator {
    type: "vibration";
    playEffect(type: "dual-rumble", params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
    reset(): Promise<GamepadHapticsResult>;
}

Properties

Methods

Properties

type: "vibration"

Methods