DeviceMotionEventAcceleration
DeviceMotionEventAcceleration 介面屬於 Device Orientation Events,它提供了有關裝置沿所有三個軸的加速度資訊。
例項屬性
DeviceMotionEventAcceleration.x只讀-
沿 X 軸的加速度大小。
DeviceMotionEventAcceleration.y只讀-
沿 Y 軸的加速度大小。
DeviceMotionEventAcceleration.z只讀-
沿 Z 軸的加速度大小。
規範
| 規範 |
|---|
| 裝置方向和運動 # devicemotioneventacceleration |
瀏覽器相容性
載入中…