Gamepad Button and Axis Events

Adds events for gamepadbuttondown, gamepadbuttonup, gamepadbuttonchange, and gamepadaxismove.

Comments

Gamepad button and axis events are implemented in Firefox behind the flag dom.gamepad.non_standard_events.enabled. https://dxr.mozilla.org/mozilla-central/source/dom/webidl/GamepadAxisMoveEvent.webidl https://dxr.mozilla.org/mozilla-central/source/dom/webidl/GamepadButtonEvent.webidl There is also a polyfill that provides these events on browsers that do not support them. https://github.com/MozillaReality/gamepad-plus/blob/master/README.md

Documentation

Specification

Public discussion

Status in Chromium

Blink>GamepadAPI


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • No public signals
  • Positive

Owner

Last updated on 2020-03-25