Mobile devices are amazing things. Not only can you use them to make phone calls, but they are jammed full of interesting sensors such as accelerometers, gyroscopes and GPS chips. These amazing components not only tell you where you are on the planet but also the direction you’re facing and how many G’s you happen to be pulling as you ride the tram on the way to work.
And all of this is now available in the web browser through the Device API. In this short session we’ll look at how to get access to the orientation and motion data available to the mobile browser. Rather than just using it to turn your page the right way up no matter which way you’re holding the device, we’ll look at how to use these APIs to create applications with new input methods based on sensor data as well as user interaction.