| Summary: | Bluetooth gamepad inputs are not seen as user gestures when requesting fullscreen | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | rjclarke |
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED MOVED | ||
| Severity: | Normal | CC: | beidson, dino, marcosc, richard_robinson2, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=235052 | ||
|
Description
rjclarke
2023-11-03 13:50:56 PDT
I personally don't think this is unreasonable, but it's really something that needs to be raised on the HTML spec. For a concise description of what's going on, please see "So what constitutes a “user activation”": https://webkit.org/blog/13862/the-user-activation-api/ What would need to happen is that "gamepadconnected" should perhaps count as a “activation triggering user event”. > Gamepad input, such as button presses or triggers, should be recognized as valid user gestures and trigger fullscreen mode when interacting with the fullscreen button on websites. The problem is that gamepad button presses or triggers are not events. The gamepad API is a polling API, so the application checks periodically (through, for instance, .requestAnimationFrame()), so these are not events in way that would be needed to trigger user activation. There is an ongoing effort to change the Gamepad to an event driven API, but it's still some ways off. Filed HTML issue for you: https://github.com/whatwg/html/issues/10347 |