Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use referenceFrame when Sensor API used #17

Closed
jsantell opened this issue Feb 19, 2018 · 2 comments
Closed

Use referenceFrame when Sensor API used #17

jsantell opened this issue Feb 19, 2018 · 2 comments

Comments

@jsantell
Copy link
Contributor

via @pozdnyakov #10 (comment)

@cvan @jsantell FYI, screen coordinates synchronization for the Accelerometer, Gyroscope, LinearAcceleration, AbsoluteOrientationSensor and RelativeOrientationSensor
classes is available now in Chrome canaries (starting from 66.0.3350.0). In practice, it means that if you create a sensor object passing {referenceFrame:"screen"} to the constructor (e.g. new RelativeOrientationSensor({frequency: 60, referenceFrame:"screen"})) the screen coordinate system will be used to resolve the sensor readings. So, there will be no need to remap sensor readings on JS side when the screen orientation changes.

@jsantell
Copy link
Contributor Author

@cvan
Copy link
Contributor

cvan commented Apr 13, 2018

just FYI: as of a week ago, in Chrome the Sensor API is now enabled by default (without needing to flip a flag)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants