SNES USB gamepad emulate keyboard keys with 0 delay.
Platforms like Stadia don't allow other controllers. But they allow keyboard so we can emulate the controller as if it were a keyboard.
It can also be used outside of a gaming platform.
Test in https://apps.nektro.net/gamepad/ or https://greggman.github.io/html5-gamepad-test/
- usb gamepad (Vendor: 0810 Product: e501)
git clone https://github.com/jerosoler/snes-gamepad2keyboard.git
Run with sudo
cd snes-gamepad2keyboard
npm install
sudo node index.js
| Gamepad | Keyboard |
|---|---|
| a | space |
| b | c |
| x | z |
| y | x |
| l | l |
| r | r |
| select | escape |
| start | enter |
| up | up |
| down | down |
| left | left |
| right | right |
Modify index.js const keys
- Linux
MIT License
