DeviceMotionEvent

extern class js.html.DeviceMotionEventextends EventAvailable in jsA DeviceMotionEvent object describes an event that indicates the amount of physical motion of the device that has occurred, and is fired at a set interval (rather than in response to motion). It provides information about the rate of rotation, as well as acceleration along all three axes.

Documentation for this class was provided by MDN.
var acceleration(default,null) : DeviceAccelerationThe acceleration of the device. This value has taken into account the effect of gravity and removed it from the figures. This value may not exist if the hardware doesn't know how to remove gravity from the acceleration data. Read only. var accelerationIncludingGravity(default,null) : DeviceAccelerationThe acceleration of the device. This value includes the effect of gravity, and may be the only value available on devices that don't have a gyroscope to allow them to properly remove gravity from the data. Read only. var interval(default,null) : FloatThe interval, in milliseconds, at which the DeviceMotionEvent is fired. The next event will be fired in approximately this amount of time. var rotationRate(default,null) : DeviceRotationRateThe rates of rotation of the device about all three axes. Read only. function initDeviceMotionEvent( type : String, bubbles : Bool, cancelable : Bool, acceleration : DeviceAcceleration, accelerationIncludingGravity : DeviceAcceleration, rotationRate : DeviceRotationRate, interval : Float ) : Void
version #18253, modified 2013-05-01 11:57:08 by api
0 comment