Skip to content
Experiments with DeviceMotion and DeviceOrientation events. Feel free to fork and extend! http://cpojer.net
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README.md
arrow.png
arrow.psd
image.html
image1.jpg
image2.jpg
index.html
map.html
mootools-core.js
mootools-more.js
motion.html
orientation.html
perspective.html
style.css

README.md

Orientation

Try this on an iPhone 4, lock the screen in portrait mode and wave your phone around. The demos are quite basic and should help you get started. I am excited to see games based on these new features that were added in iOS 4.2.

Feel free to fork this repository and add your own stuff.

Documentation

Notes

  • Possibly works in Chrome on MacBooks (probably looks ugly though).
Something went wrong with that request. Please try again.