Bug 273960
| Summary: | Add Gyroscope API to iPhone and iPad | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jeffrey Blanz <possum.bracing0v> |
| Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Major | CC: | annevk, marcosc, possum.bracing0v |
| Priority: | P2 | ||
| Version: | Safari 17 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 17 | ||
| URL: | https://w3c.github.io/gyroscope/ | ||
Jeffrey Blanz
Some games use gyroscope controls for aiming. This is not possible on safari due to the lack of the Gyroscope API.
The standard is here: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
As far as I can tell, we don't have a standards position issue open at this time.
Marcos Caceres
I think you can use the device orientation API:
developer.mozilla.org/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation
It relies on the gyroscope to get the device’s orientation.
Marcos Caceres
Filed standards position request:
https://github.com/WebKit/standards-positions/issues/347
Marcos Caceres
It’s highly likely we will “oppose” this specification as it’s duplicative of what the Device Orientation and Motion specification already provides (as far as I can tell).