Skip to content

Gamepad API button and axis events #554

@nondebug

Description

@nondebug

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Unscreened

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions