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

Consider making "gamepadconnected" part of “activation triggering user event”? #10347

Open
marcoscaceres opened this issue May 14, 2024 · 1 comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest

Comments

@marcoscaceres
Copy link
Member

marcoscaceres commented May 14, 2024

What problem are you trying to solve?

Over on the WebKit repo in issue 264179 , rjclarke@amazon.com filed:

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.

What solutions exist today?

Using the “activation triggering user events”.

How would you solve it?

Maybe including "gamepadconnected" as part of “activation triggering user events”.

Anything else?

No response

@marcoscaceres marcoscaceres added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels May 14, 2024
@pshaughn
Copy link
Contributor

Given the gamepad specification: "A user agent MUST dispatch this event type to indicate the user has connected a gamepad. If a gamepad was already connected when the page was loaded, the gamepadconnected event SHOULD be dispatched when the user presses a button or moves an axis." I feel like some gamepadconnected events are candidates for user activation, and some aren't.

If I've just coincidentally plugged in a gamepad or had a Bluetooth connection dropout/dropin while the page is open, or if I have a rotation-sensing gamepad I've just moved a little on my desk, I wouldn't want that to be activation... but if I'm pressing a button, or I'm pushing a shoulder trigger axis all the way from one extreme to the other, then I'd probably like that to be activation. I'm thinking maybe something like connection no, button yes, axis leave up to implementors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest
Development

No branches or pull requests

2 participants