< Canvas 2D Web Apps
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.
Unless stated otherwise, all example source code on this page is granted to the public domain.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.