Google uses accelerometer API in Jules Verne Google Doodle
googleblog.blogspot.com
Google uses accelerometer API in Jules Verne Google Doodle
1–10 of 33 posts
Re: Google uses accelerometer API in Jules Verne Google Doodle
#2Re: Google uses accelerometer API in Jules Verne Google Doodle
#3Re: Google uses accelerometer API in Jules Verne Google Doodle
#4And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...
Re: Google uses accelerometer API in Jules Verne Google Doodle
#5And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...
Re: Google uses accelerometer API in Jules Verne Google Doodle
#6And which devices that support Firefox or Chrome actually have accelerometers? It doesn't work on my Froyo phone...
the nexus 1/s, probably.
It works - somewhat - on an iPad - but there's a problem in that tilting the iPad makes the screen rotate and locking the screen seems to disable the tilt events.
Best experience is on a MacBook with Chrome, IMHO.
Re: Google uses accelerometer API in Jules Verne Google Doodle
#7Earlier quoted context omitted.
the nexus 1/s, probably.
Default Nexus 1 install has a Mobile Webkit browser, which doesn't even get the interactive version. It works - somewhat - on an iPad - but there's a problem in that tilting the iPad makes the screen rotate and locking the screen seems to disable the tilt events. Best experience is on a MacBook with Chrome, IMHO.
Re: Google uses accelerometer API in Jules Verne Google Doodle
#8Here's the basic usage for chrome: (for firefox the event is MozOrientation, and values are radians rather than degrees)
window.addEventListener('deviceorientation', function(evt) {
var x = evt.gamma, y = evt.beta;
}, false);Re: Google uses accelerometer API in Jules Verne Google Doodle
#9Earlier quoted context omitted.
Default Nexus 1 install has a Mobile Webkit browser, which doesn't even get the interactive version. It works - somewhat - on an iPad - but there's a problem in that tilting the iPad makes the screen rotate and locking the screen seems to disable the tilt events. Best experience is on a MacBook with Chrome, IMHO.
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.