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

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/Shipping
  • No signal
  • No signal
  • Positive

Owner

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

Search tags

gamepad, button, axis, event,

Last updated on 2021-01-01