Skip to content

v2.0.0

Compare
Choose a tag to compare
@Tom32i Tom32i released this 27 Jan 13:38
· 2 commits to master since this release

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
});