Reputation: 203
I have been all over the web trying to figure out how to use the devicemotion event in javascript to capture the accelerometer on mobile safari for the iPad or the iPhone. I just would like to know how can i implement it into a website or if somewone could please give me a good explanation of how it works thanks
Upvotes: 1
Views: 2747
Reputation: 12608
iOS supports the DeviceOrientation API.
Here's a sample: http://www.mobilexweb.com/samples/ball.html
Upvotes: 2