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

Gamepad API button and axis events #554

Open
nondebug opened this issue Jul 16, 2021 · 0 comments
Open

Gamepad API button and axis events #554

nondebug opened this issue Jul 16, 2021 · 0 comments

Comments

@nondebug
Copy link

Request for Mozilla Position on an Emerging Web Specification

Other information

An implementation of these events was added when the API was first developed. However, the events were never added to the official spec so they are currently only enabled with a flag (dom.gamepad.non_standard_events.enabled).

The proposed spec changes differ in some ways from the Firefox implementation:

  • gamepadbuttondown, gamepadbuttonup, gamepadaxismove are renamed to buttondown, buttonup, axischange.
  • A buttonchange event is added that fires when a button value changes.
  • The new events are specified to fire on the Gamepad object instead of the Window object.

Chrome's implementation status is available here: https://chromestatus.com/feature/5989275208253440

Firefox is currently listed as "Positive" based on tmielczarek@'s comment on the 2015 public-webapps thread which predates this proposal, I'll update the link to the official position once it's published.

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

No branches or pull requests

1 participant