-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
Suggestion would be to add a button history array for v2. |
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. |
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. |
You're right, I fixed the strong language. |
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.
The text was updated successfully, but these errors were encountered: