mozilla / mozilla/standards-positions

Gamepad API button and axis events

Open
#554 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
760
Forks
88
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Gamepad API proposal and the related Bugzilla report, then compare the proposed event names, targets, and behavior with Firefox's flag-gated implementation. Done means establishing and recording Mozilla's official position on the specification changes; the issue does not name repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.