gamepad-api

node version npm version downloads count size license

🔨 Used Gamepad API to setup wrapper for nicer usage.

Preview 🎉

https://piecioshka.github.io/gamepad-api/demo/

Install

npm install gamepad-api

API

Gamepad.on('SUPPORTED_EVENT', function () {
  // do something ...
});

Supported events

Gamepad API

More details in specification: https://www.w3.org/TR/gamepad/

Thanks

Thanks ben@daisyowl.com for https://html5gamepad.com/.

License

The MIT License