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 {
playEffect (type: GamepadHapticEffectType, params?: GamepadEffectParameters ): Promise<GamepadHapticsResult >;
reset (): Promise<GamepadHapticsResult >;
}

Methods

playEffect

reset

Settings

Member Visibility

On This Page

AltStyle によって変換されたページ (->オリジナル) /