h5bp / lazyweb-requests

Get projects and ideas built by the community
https://github.com/h5bp/lazyweb-requests/issues
1.69k stars 84 forks source link

A proper DeviceMotion/DeviceOrientation polyfill #177

Closed stuartpb closed 5 years ago

stuartpb commented 9 years ago

There's nothing out there that actually polyfills (and fixes values for) the DeviceMotion API. There are a few libraries that implement their own API (gyronorm, gyro.js, FullTilt) or emulate the interface (remy's), but nothing that takes an existing API for device motion and translates it into the standard API. Moreover, there's nothing out there that translates from the Cordova navigator.accelerometer or navigator.compass APIs.

CrowdHailer commented 9 years ago

I think this would be great. If we can start creating a collection of resources I might be able to look into this in a few weeks. I have been creating a website which would use this. Currently I am forging ahead to make it work for android only but when I get a bit more time would keenly contribute to working on this.

CrowdHailer commented 9 years ago

@stuartpb Do you have a link to the "remy's" interface. I have found the first three librarys but not the last one

stuartpb commented 9 years ago

Remy's doesn't really matter, it's just a library that generates an on-screen UI for faking device events if the UA doesn't support them.

In any case, http://lmgtfy.com/?q=remy+devicemotion&l=1 => https://github.com/remy/polyfills/blob/master/device-motion-polyfill.js

stuartpb commented 8 years ago

@substack do you think you might be able to implement this, tapping into your deep, knowledgeable understanding of balls?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.