Skip to content

LizardByte/gamepad-helper

Repository files navigation

gamepad-helper

GitHub stars GitHub Workflow Status (CI) Codecov NPM Monthly Downloads NPM Version GitHub Monthly Downloads GitHub Version

Helper library for Gamepad API. Helps with detecting type of gamepad and mapping to buttons and icons.

Installation

Install via NPM registry

  1. Add the dependency to your package.json file:
    npm install @lizardbyte/gamepad-helper

Install via GitHub Package Registry

  1. Add a .npmrc file to the root of your project with the following contents.

    //npm.pkg.github.com/:_authToken=TOKEN
    @lizardbyte:registry=https://npm.pkg.github.com
    

    Replace TOKEN with a valid GitHub token with read access to the package registry.

    See Authenticating with a personal access token for more information or alternative methods of authentication.

  2. Add the dependency to your package.json file:

    npm install @lizardbyte/gamepad-helper

Attribution

About

Helper library for Gamepad API

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •