playEffect method

JSPromise<JSString> playEffect(
  1. GamepadHapticEffectType type, [
  2. GamepadEffectParameters params
])

The playEffect() method of the GamepadHapticActuator interface makes the hardware play a specific vibration pattern.

Implementation

external JSPromise<JSString> playEffect(
  GamepadHapticEffectType type, [
  GamepadEffectParameters params,
]);