Handle Keyboard, Gamepad, and Touch Controls under a single API
Proper README Coming soon!
See the index.js at the root of the project, for a proper usage, and touch input example
TL;DR
-
npm install --save responsive-gamepad -
import { ResponsiveGamepad } from './dist/responsive-gamepad.esm'; -
ResponsiveGamepad.initialize(); -
ResponsiveGamepad.getState();
-
Support Multiple Players
-
Full Controller support (X, Y, Triggers, etc...)
-
Code Cleanup
-
Proper Demo
https://w3c.github.io/gamepad/#remapping
https://css-tricks.com/snippets/javascript/javascript-keycodes/
https://material.io/icons/#ic_gamepad
https://github.com/torch2424/picoDeploy/tree/master/src/components/gamepad
https://github.com/torch2424/picoDeploy/blob/master/src/components/gamepad/gamepad.ts
https://msdn.microsoft.com/en-us/library/windows/desktop/ee417014(v=vs.85).aspx
https://www.reddit.com/r/pcgaming/comments/4zlbrx/what_is_the_difference_between_directinput_and/
https://stackoverflow.com/questions/41251051/is-the-html5-gamepad-api-limited-to-only-4-controllers