package js.html
extends Event
Available on jsThe
DeviceMotionEventprovides web developers with information about the speed of changes for the device's position and orientation.Documentation DeviceMotionEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (type:String, ?eventInitDict:DeviceMotionEventInit)Throws:
null |
DOMError |
|---|
read only acceleration:DeviceAccelerationAn object giving the acceleration of the device on the three axis X, Y and Z. Acceleration is expressed in m/s2.
read only accelerationIncludingGravity:DeviceAccelerationAn object giving the acceleration of the device on the three axis X, Y and Z with the effect of gravity. Acceleration is expressed in m/s2.
read only interval:FloatA number representing the interval of time, in milliseconds, at which data is obtained from the device.
read only rotationRate:DeviceRotationRateAn object giving the rate of change of the device's orientation on the three orientation axis alpha, beta and gamma. Rotation rate is express in degrees per seconds.
initDeviceMotionEvent (type:String, canBubble:Bool, cancelable:Bool, acceleration:DeviceAccelerationInit, accelerationIncludingGravity:DeviceAccelerationInit, rotationRate:DeviceRotationRateInit, interval:Float):Void
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DeviceMotionEvent.html