Tag Archive

Firefox accelerometer

Published on 14/10/2009 By Filipe Teixeira Nunes

Paul Rouget shows off some cool new demos that are baking on the trunk of Firefox currently. First are some nifty new events that get fired if your computer has an accelerometer: PLAIN TEXT JAVASCRIPT: window.addEventListener(“MozOrientation”, function(e) { /* 3 values: e.x, e.y, e.y */ }, true) It works with MacBooks and on Windows and [...]