Live data from Hacker News

Google uses accelerometer API in Jules Verne Google Doodle

googleblog.blogspot.com

11–20 of 33 posts

Re: Google uses accelerometer API in Jules Verne Google Doodle

#15

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?"

All kinds of laptops have had accelerometers since the early 2000s or so. (IBM ran commercials for their ThinkPads with “airbag” all the time. Yep, this was already built into laptops when IBM still sold ThinkPads.) They stop the hard drive when accelerations get too extreme.

Re: Google uses accelerometer API in Jules Verne Google Doodle

#16
post #9
post #7

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... ?

where's the one that switching workspaces when you tap the left/right side of the laptop?

Re: Google uses accelerometer API in Jules Verne Google Doodle

#17
post #12
post #2

And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...

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.

Re: Google uses accelerometer API in Jules Verne Google Doodle

#18
post #11

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...

You can view source on this page for the normalization code to harmonize both implementations:

http://studio.html5rocks.com/samples/orientation/index.html (see VideoPhysicsController.prototype._onTilt() )

Re: Google uses accelerometer API in Jules Verne Google Doodle

#19
post #17
post #12

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.

See http://www.thinkwiki.org/wiki/HDAPS .

I am not sure whether Firefox or Chrome/Chromium on Linux will actually read the data that is provided by hdaps.

Post reply on HN