1.0.6 • Published 6 months ago

gamepad-api v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 months ago

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/

Usage

Installation:

npm install gamepad-api
Gamepad.on('SUPPORTED_EVENT', function () {
  // do something ...
});

API / Supported events

  • Joysticks

    • joystick:left - when user use left joystick
    • joystick:right - when user use right joystick
  • Arrows

    • arrow:up
    • arrow:right
    • arrow:down
    • arrow:left
  • Shapes

    • shape:triangle
    • shape:circle
    • shape:cross
    • shape:square
  • Special

    • special:select
    • special:start
    • special:ps
  • Extras

    • extra:l1
    • extra:l2
    • extra:r1
    • extra:r2

Gamepad API

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

npm.io

Thanks

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

License

The MIT License

1.0.6

6 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 years ago

1.0.0

9 years ago