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

Fast button presses could get lost #77

Open
larsgk opened this issue Jul 25, 2018 · 4 comments
Open

Fast button presses could get lost #77

larsgk opened this issue Jul 25, 2018 · 4 comments
Labels

Comments

@larsgk
Copy link

larsgk commented Jul 25, 2018

Quickly pressing/releasing buttons could get lost between calls to navigator.getGamepads()

I fully understand why the API uses a polling mechanism (and not events) to e.g. prevent 'data overflow' of analog axis events, but perhaps it could be possible to include a history on each button with timestamps and data if more than one change happened since last call to getGamepads().

This is only really an issue if the framerate drops, of course.

@marcoscaceres
Copy link
Member

Suggestion would be to add a button history array for v2.

@JonathanILevi
Copy link

JonathanILevi commented Apr 29, 2021

It does not matter what the solution is, but this is a serious issue that needs fixed. Modern web APIs should not still have this problem. The API is the core which abstractions can be built on, it is poor quality when it cannot efficiently reproduce the information the underlying system already has.

I would be pleased to see any of many solutions to the problem implemented.

@reillyeon
Copy link
Member

When discussing this issue please keep in mind the W3C's Code of Ethics and Professional Conduct. Then language used in the comment above is unnecessary to effectively communicate the issues with the current design.

@JonathanILevi
Copy link

You're right, I fixed the strong language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants