Tom32i Gamepad.js Versions Save

A simple HTML5 Gamepad handler that provides keyboard-like events for Gamepad sticks and buttons.

v2.1.0

1 year ago
  • Refactoring and updated documentation.

v2.0.0

1 year ago

Changelog

  • [BC break] Drop "stick" behavior in favor of "axes" to be consistant with Gamepad API.

V1:

listener.on('gamepad:axis', function (event) {
    const { stick, axis } = event.detail;
    // { stick: 0, axis: 1 }
});

V2:

listener.on('gamepad:axis', function (event) {
    const { axis } = event.detail;
    // axis: 3
});

v1.0.5

1 year ago

v1.0.4

3 years ago

Npm security update

v1.0.3

3 years ago

Fix sticks count from axes.

v1.0.2

3 years ago

Support any number of sticks (and not juste "2").

v1.0.1

3 years ago

Updated dependencies

v1.0.0

3 years ago

Completly rewriten in ES6 + Updated depenencies

v0.1.0

9 years ago

v0.0.6

9 years ago