WAC Demo: Accelerometer
WAC 1.0 Demo: Accelerometer
Description
Accelerometer information is retrieved directly as a property of the DeviceStateInfo object.
xAxis
- The value of the x-axis, which is positive to the right of the device and negative to the left.
yAxis
- The value of the y-axis, which is positive above the device and negative below the device.
zAxis
- The value of the z-axis, which is positive from the screen of the device toward the user and negative behind the device.
How to retrieve data?
Widget.Device.DeviceStateInfo.AccelerometerInfo.xAxis
Widget.Device.DeviceStateInfo.AccelerometerInfo.yAxis
Widget.Device.DeviceStateInfo.AccelerometerInfo.zAxis
Note that this widget requires WAC 1.0 APIs support in a runtime, currently implemented in Android version only.
Screenshots

Download
Works with Opera 9 to Opera 12.
About this widget
| Downloads | 2,614 |
|---|---|
| Category | WAC Demo |
| Version | 1.3 |
| Size | 14KB |
| Last update | February 7, 2011 |
| Devices | desktop, mobile |
| Original page | Internet Archive |