Bug 273960 - Add Gyroscope API to iPhone and iPad
Summary: Add Gyroscope API to iPhone and iPad
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Major
Assignee: Nobody
URL: https://w3c.github.io/gyroscope/
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-09 10:49 PDT by Jeffrey Blanz
Modified: 2024-05-14 07:16 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Blanz 2024-05-09 10:49:36 PDT
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
Comment 1 Alexey Proskuryakov 2024-05-09 13:01:21 PDT
As far as I can tell, we don't have a standards position issue open at this time.
Comment 2 Marcos Caceres 2024-05-14 07:07:09 PDT
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.
Comment 3 Marcos Caceres 2024-05-14 07:15:15 PDT
Filed standards position request:
https://github.com/WebKit/standards-positions/issues/347
Comment 4 Marcos Caceres 2024-05-14 07:16:50 PDT
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).