Reference deviceTurned()

deviceTurned()

The deviceTurned() function is called when the device rotates by more than 90 degrees continuously.

The axis that triggers the deviceTurned() method is stored in the turnAxis variable. The deviceTurned() method can be locked to trigger on any axis: X, Y or Z by comparing the turnAxis variable to 'X', 'Y' or 'Z'.

Examples

This page is generated from the comments in src/events/acceleration.js . Please feel free to edit it and submit a pull request!

Related References