1. #1
    Sencha User jamesgpearce's Avatar
    Join Date
    Jun 2010
    Location
    Palo Alto
    Posts
    61
    Vote Rating
    0
    jamesgpearce is on a distinguished road

      0  

    Cool DeviceOrientation and DeviceMotion fun

    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

    https://developer.apple.com/library/...tionEvent.html

    https://developer.apple.com/library/...tionEvent.html

    Although of course view-source is also your friend.

  2. #2
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    THanks for the info and demo. Had no idea this was possible. Look awesome..

  3. #3
    Sencha User ariya's Avatar
    Join Date
    Aug 2010
    Location
    Bay Area
    Posts
    21
    Vote Rating
    2
    ariya is on a distinguished road

      0  

    Default


    Not a Sencha Touch app, but take a look: http://ariya.github.com/js/marblebox/

    Just to demonstrate what you can get by combining the sensor data and a physics engine

  4. #4
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    looks good. did u use any library for the physics?

  5. #5
    Sencha User ariya's Avatar
    Join Date
    Aug 2010
    Location
    Bay Area
    Posts
    21
    Vote Rating
    2
    ariya is on a distinguished road

      0  

    Default


    Quote Originally Posted by blessan View Post
    looks good. did u use any library for the physics?
    Yes, I use Box2D. The full store behind: http://ariya.blogspot.com/2010/11/bo...ientation.html

  6. #6
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    oh i see. will check it out thanks for the info

  7. #7
    Sencha User jamesgpearce's Avatar
    Join Date
    Jun 2010
    Location
    Palo Alto
    Posts
    61
    Vote Rating
    0
    jamesgpearce is on a distinguished road

      0  

    Default


    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.

  8. #8
    Sencha User jamesgpearce's Avatar
    Join Date
    Jun 2010
    Location
    Palo Alto
    Posts
    61
    Vote Rating
    0
    jamesgpearce is on a distinguished road

      0  

  9. #9
    Sencha User ariya's Avatar
    Join Date
    Aug 2010
    Location
    Bay Area
    Posts
    21
    Vote Rating
    2
    ariya is on a distinguished road

      0  

    Default


    Here is another 10-minute hack: http://ariya.github.com/js/devicemotion/

    Useful to for troubleshooting, or if you are still confused which direction X, Y, and Z are

  10. #10
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default


    Hi

    Thanks Great news and demos

Similar Threads

  1. [HELP] Panel and XTemplate Fun
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 16
    Last Post: 6 May 2009, 5:57 PM
  2. Fun with Ubiquity
    By mankz in forum Community Discussion
    Replies: 0
    Last Post: 31 Aug 2008, 7:23 AM
  3. [HELP] ComboBox Fun
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 5 Feb 2008, 9:22 AM
  4. Progress Bar Fun
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 15
    Last Post: 29 Nov 2007, 4:07 AM

Thread Participants: 3

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi