hellopaso Posted April 19, 2014 Share Posted April 19, 2014 Hi there, Want to use accelerometer for my game. if (window.DeviceOrientationEvent){ window.addEventListener('deviceorientation', devOrientHandler, false);}devOrientHandler = function(eventData){ var tiltLR = eventData.gamma;}} works fine except for mobile Chrome browser (on Android device) any idea why? thanks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.