Referencia 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'.

Ejemplos

Notice any errors or typos? Please let us know. Please feel free to edit src/events/acceleration.js and open a pull request!

Referencias Relacionadas