Canvas 2D Web Apps/Acceleration


In HTML5, changes of the orientation and acceleration of a device can be monitored with the help of deviceorientation and devicemotion events. W3C has published the DeviceOrientation Event Specification. In the Mozialla Developer Network, see the event reference for deviceorientation and devicemotion. Apple developers should consult the DeviceOrientationEvent and the DeviceMotionEvent class reference in Apple's Safari Developer Library.



< Canvas 2D Web Apps

Unless stated otherwise, all example source code on this page is granted to the public domain.