- Doug Turner's blog posts (Moz developer):
- demo movie
- Mozilla's IDL for the event:
- for reference, iPhone OS doc on accelerometer APIs:
- Android doc on Sensor events, that can track acceleration and orientation as separate things
Unfortunately, there's no "API" apparently for desktop macs, though accessing accelerometer data is described in "Mac OS X Internals: A Systems Approach" by Amit Singh (section 10.7.5). Accelerometers are available for some PC laptops as well, though the usage on a laptop seems a bit of a stretch.
There's now a draft spec for both orientation and accelerometer events. It's being developed by the Geolocation working group of which Doug is an active member. See http://dev.w3.org/geo/api/spec-source-orientation.html.
We plan to implement this in Android soon.
> We plan to implement this in Android soon.
By which I mean we'll contribute both the WebCore common code and the specifics for the Android port.
Patches coming soon ...
I'll implement DeviceOrientation in stages, with separate bugs to track each stage.
I've filed Bug 39210 to tack the addition of the bindings.
Adding myself to the CC list.
Added spec link to bug's URL field