这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
type
只读特性在
GamepadHapticActuator
interface returns an enum representing the type of the haptic hardware.
var myActuatorType = gamepadHapticActuatorInstance.type;
An enum of type
GamepadHapticActuatorType
; currently available types are:
vibration
— vibration hardware, which creates a rumbling effect.
TBC
| 规范 | 状态 | 注释 |
|---|---|---|
|
Gamepad Extensions
The definition of 'GamepadHapticActuatorType' in that specification. |
编者草案 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
type
|
Chrome 68 | Edge 15 |
Firefox
Yes
Disabled
|
IE No | Opera 55 | Safari No | WebView Android No | Chrome Android 68 | Firefox Android No | Opera Android 48 | Safari iOS No | Samsung Internet Android 10.0 |
完整支持
不支持
实验。期望将来行为有所改变。
见实现注意事项。
用户必须明确启用此特征。
GamepadHapticActuator
type