Mozilla does it somewhat differently:
https://developer.mozilla.org/en/Detecting_device_orientatio...
11–20 of 33 posts
Mozilla does it somewhat differently:
https://developer.mozilla.org/en/Detecting_device_orientatio...
And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...
FYI, the accelerometer works on a MacBook Pro with Chrome or Firefox as well. I remember when Kris showed me the demo on his Mac, I was like "Wow, you can do that on a normal laptop?"
Earlier quoted context omitted.
I just tried it with my mac. I was surprised that chrome had access to the accelerometers. I thought they were only used to make sure the hard drive doesn't die in case of dropage.
Never tried http://blog.isnoop.net/2006/05/20/macsaber-turn-your-mac-int... ?
And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...
ThinkPads, Mac Laptops
I know it has an accelerometer (I've seen the bundled Windows software use it), but I don't know where the API to access that data is.
Spec (for webkit based browsers): http://dev.w3.org/geo/api/spec-source-orientation.html of how to access acceleration data. Mozilla does it somewhat differently: https://developer.mozilla.org/en/Detecting_device_orientatio...
http://studio.html5rocks.com/samples/orientation/index.html (see VideoPhysicsController.prototype._onTilt() )
Earlier quoted context omitted.
ThinkPads, Mac Laptops
Doesn't work on my new Thinkpad T510, running Ubuntu and Chromium 9.0. I know it has an accelerometer (I've seen the bundled Windows software use it), but I don't know where the API to access that data is.
I am not sure whether Firefox or Chrome/Chromium on Linux will actually read the data that is provided by hdaps.
And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...