HTML5 Device Motion Event
This event provides direct access to motion data from an accelerometer and gyroscope. The three pieces of data provided are the acceleration, acceleration including gravity and rotation rate.
At this moment the data supported is from Accelerometer only.
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document:
|This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application.|
|Permission Elements (PlayBook and BlackBerry 10+)|
|This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.|
Implementations that are unable to provide acceleration data without the effect of gravity (due, for example, to the lack of a gyroscope) may instead supply the acceleration including the effect of gravity. This is less useful in many applications but is provided as a means of providing best-effort support. In this case, the values reported are equal to the acceleration of the device, plus an acceleration equal and opposite to the acceleration due to gravity.
|- BlackBerry PlayBook 1.0+|
|- BlackBerry 10|
|- Ripple Emulator|