--- title: GamepadHapticActuator.pulse() slug: Web/API/GamepadHapticActuator/pulse tags: - API - Experimental - Gamepad - Gamepad API - GamepadHapticActuator - Method - Reference - pulse translation_of: Web/API/GamepadHapticActuator/pulse ---
{{domxref("GamepadHapticActuator")}} インターフェイスの pulse()
メソッドは、指定された期間、特定の強度でハードウェアパルスを作成します。
gamepadHapticActuatorInstance.pulse(value, duration).then(function(result) { ... });
Note: pulse()
への繰り返しの呼び出しは、それらがまた進行中である場合、以前の呼び出しをオーバーライドします。
パルスが正常に完了したときに true
の値で解決される promise 。
TBC
仕様 | ステータス | 備考 |
---|---|---|
{{SpecName('GamepadExtensions', '#dom-gamepadhapticactuator-pulse', 'pulse()')}} | {{Spec2('GamepadExtensions')}} | 初回定義 |
{{Compat("api.GamepadHapticActuator.pulse")}}