JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36
  • Score
    100M100P100Q38983F
  • License MIT

a superb library that extends the Gamepad API with super powers

Package Exports

  • gamepad-plus

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gamepad-plus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gamepad-plus 🎮

A superb library that extends the Gamepad API with super powers.

Features

  • 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

Example

View example of sample usage (source)

Developers

Run this command to compile the JavaScript as a standalone module to dist/gamepads.js:

npm run build

Maintainers

Run this command to publish a new tag to GitHub and version to npm:

npm run release