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:

Variables

read onlyx:Float

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

read onlyy:Float

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

read onlyz:Float

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