a superb library that extends the Gamepad API with super powers
npm install gamepad-plusA superb library that extends the Gamepad API with super powers.
* polyfill the standard events, when unsupported: gamepadconnected, gamepaddisconnected
* polyfill the non-standard events, when unsupported: gamepadbuttondown, gamepadbuttonup, gamepadaxismove
* normalise mapping for gamepads in the wild to the Standard Gamepad layout
* attach an object of attributes about the gamepad and data source
View example of sample usage (source)
Run this command to compile the JavaScript as a standalone module to __dist/gamepads.js__:
npm run build
Run this command to publish a new tag to GitHub and version to npm:
npm run release