September 2012
Intermediate to advanced
552 pages
14h 48m
English
Some of the fun that game developers could have with the Device Orientation API, which you saw in Chapter 24, “Querying Device Orientation and Acceleration,” was mitigated because the screen would rotate when you got past a certain point.
The good news is that there is a W3C specification that can enable web developers to both more accurately capture the current state of the screen orientation and lock the screen to a specific orientation. The working draft of this specification is available at www.w3.org/TR/screen-orientation/.
The only implementation available on devices as of this writing is in the Mozilla Android browser Fennec, but hopefully Chrome for Android and Mobile Safari will get this API in the future.
Read now
Unlock full access