24 Nov 2010 8:26 AM #1
DeviceOrientation and DeviceMotion fun
With Apple's iOS4.2 update on Monday, mobile Safari now has support for the W3C's DeviceOrientation spec (http://dev.w3.org/geo/api/spec-source-orientation.html) and device motion.
This now means we can all try out some neat new techniques with mobile web user interfaces.
For example, our own Rob Dougan already has a demo showing how an accelerometer can control the scrolling of an Ext.List in SenchaTouch: http://b.rwd.me/
It's very cool. This is another glimpse at the dawn of a whole new web era!
There are a few other cool demos out there already, but... use feel free to use this thread to show off any interesting ways you've used accelerometer and gyroscope capabilities in your Sencha Touch apps.
PS. The Apple reference pages for the two APIs are available at
Although of course view-source is also your friend.
24 Nov 2010 9:28 PM #2
THanks for the info and demo. Had no idea this was possible. Look awesome..
29 Nov 2010 10:52 PM #3
30 Nov 2010 12:21 AM #4
looks good. did u use any library for the physics?
30 Nov 2010 9:52 AM #5
30 Nov 2010 7:56 PM #6
oh i see. will check it out thanks for the info
30 Nov 2010 9:29 PM #7
I used Sencha Touch to create a small slider game: http://tinyurl.com/ioslide - place an iOS4.2 device on a horizontal surface and tilt it gently to slide the pieces.
(The playing grid and the tiles are all Ext-style components, fwiw)
All good fun, anyway.
30 Nov 2010 10:44 PM #8
30 Nov 2010 11:09 PM #9
1 Dec 2010 5:49 AM #10
Thanks Great news and demos
By Phunky in forum Ext 2.x: Help & DiscussionReplies: 16Last Post: 6 May 2009, 5:57 PM
By mankz in forum Community DiscussionReplies: 0Last Post: 31 Aug 2008, 7:23 AM
By Phunky in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 5 Feb 2008, 9:22 AM
By Phunky in forum Ext 2.x: Help & DiscussionReplies: 15Last Post: 29 Nov 2007, 4:07 AM