A DeviceAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.

Documentation DeviceAcceleration by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Fields

read onlyz:Float

The amount of acceleration along the Z axis. Read only.

read onlyy:Float

The amount of acceleration along the Y axis. Read only.

read onlyx:Float

The amount of acceleration along the X axis. Read only.