GamepadHapticActuator.pulse()
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
GamepadHapticActuator
インターフェイスの pulse()
メソッドは、指定された期間、特定の強度でハードウェアパルスを作成します。
構文
js
gamepadHapticActuatorInstance.pulse(value, duration).then(function(result) { ... });
引数
返り値
パルスが正常に完了したときに true
の値で解決される promise 。
例
TBC
仕様書
Specification |
---|
Gamepad Extensions # dom-gamepadhapticactuator-pulse |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
pulse |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.