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

Support web #32

Open
danPyk opened this issue May 21, 2024 · 3 comments
Open

Support web #32

danPyk opened this issue May 21, 2024 · 3 comments
Labels
enhancement New feature or request on hold Items that are blocked on some third-party

Comments

@danPyk
Copy link

danPyk commented May 21, 2024

Are there any chances, that there will be implementation for web?

@markvideon
Copy link
Collaborator

Depends on whether there is someone (or someones) prepared to contribute a web version.

One consideration is that gamepad APIs for web do not support advanced controller features such as manipulating lights. A decision would have to be made to carve out specific interfaces for each platform or to "no-op" on web.

@markvideon markvideon self-assigned this Jun 15, 2024
@markvideon markvideon added the enhancement New feature or request label Jun 16, 2024
@markvideon markvideon changed the title [Request] Support web Support web Jun 16, 2024
@markvideon
Copy link
Collaborator

markvideon commented Jun 16, 2024

I have taken a look at this, and I have something that should, in principle, (i.e. is supposed to) work. In my tests so far I'm seeing inconsistent behaviour across different browsers on the same platform. e.g. events & devices not being recognised by Firefox on macOS under any circumstance.

There are other kinds of gotchas even among browsers that do behave as expected, e.g. a scenario I observed where the browser does not immediately respond to device input. I was able to reliably force Google Chrome on macOS to recognise my device immediately once I had pressed a single button with the Developer Console open. Complicating things further, I suspect that there is some variance in behaviour between input devices.

I think if we were to ship a web implementation, we would need good coverage of various limitations on a per-platform and per-browser basis.

@markvideon
Copy link
Collaborator

In addition to the practical observations above, a look at https://github.com/w3c/gamepad/ suggests the W3C Gamepad API is still a work in progress with changes being discussed that would have material effects on the implementation of gamepads_web.

E.g.

@markvideon markvideon added the on hold Items that are blocked on some third-party label Jun 16, 2024
@markvideon markvideon removed their assignment Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold Items that are blocked on some third-party
Projects
None yet
Development

No branches or pull requests

2 participants