WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
264179
Bluetooth gamepad inputs are not seen as user gestures when requesting fullscreen
https://bugs.webkit.org/show_bug.cgi?id=264179
Summary
Bluetooth gamepad inputs are not seen as user gestures when requesting fullsc...
rjclarke
Reported
2023-11-03 13:50:56 PDT
When using a Bluetooth gamepad to interact with a button for entering fullscreen mode, the gamepad input is not recognized as a user gesture to activate fullscreen mode. In contrast, when clicking the button using a mouse, the fullscreen mode works as expected. This behavior suggests that the gamepad input is not being treated as a valid user gesture. Expected Behavior: 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. Actual Behavior: Gamepad input is not recognized as a valid user gesture to activate fullscreen mode. Only mouse clicks trigger fullscreen mode.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-11-10 12:53:00 PST
<
rdar://problem/118247589
>
Marcos Caceres
Comment 2
2024-05-13 19:59:26 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
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug