w3c / deviceorientation

W3C Device Orientation spec
https://www.w3.org/TR/orientation-event/
Other
49 stars 32 forks source link

What is difference with Gyroscope API ? #61

Closed GrosSacASac closed 5 years ago

GrosSacASac commented 5 years ago

About w3c/gyroscope , what is difference ? Other than the fact that deviceorientation is purely event-driven and gyrospcope requires instantiation.

anssiko commented 5 years ago

In short, deviceorientation is a fusion sensor, while gyroscope is a low-level sensor.

Please refer to the web developer-focused article https://developers.google.com/web/updates/2017/09/sensors-for-the-web and the explainer https://w3c.github.io/motion-sensors/ for more details. Hope this helps!