GamepadHapticActuator

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

Gamepad APIGamepadHapticActuator インターフェイスは、ユーザーに触覚フィードバックを提供するように設計されたコントローラー内のハードウェア (可能な場合) を表し、最も一般的には振動ハードウェアです。

このインターフェイスには、 Gamepad.hapticActuators プロパティからアクセスできます。

プロパティ

GamepadHapticActuator.type 読取専用

触覚ハードウェアのタイプを表す列挙型を返します。

メソッド

GamepadHapticActuator.pulse() 読取専用

指定した期間、特定の強度でハードウェアパルスを作成します。

TBD.

仕様書

Specification
Gamepad
# gamepadhapticactuator-interface

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
GamepadHapticActuator
canPlayEffectType
DeprecatedNon-standard
effects
Experimental
trigger-rumble effect type
Experimental
playEffect
params.leftTrigger parameter
Experimental
params.rightTrigger parameter
Experimental
trigger-rumble effect type
Experimental
pulse
reset
Secure context required
type
DeprecatedNon-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.
User must explicitly enable this feature.

関連情報