Docs
| Key |
Button Number |
Gamepad Button Name |
| 0 |
0 |
A / × |
| 1 |
1 |
B / ◯ |
| 2 |
2 |
X / ▢ |
| 3 |
3 |
Y / △ |
| 4 |
4 |
Front Left Shoulder |
| 5 |
5 |
Front Right Shoulder |
| 6 |
6 |
Back Left Trigger |
| 7 |
7 |
Back Right Trigger |
| 8 |
8 |
Select |
| 9 |
9 |
Start |
| a |
10 |
Joystick Click Left |
| b |
11 |
Joystick Click Right |
| c |
12 |
D-Pad up |
| d |
13 |
D-Pad down |
| e |
14 |
D-Pad left |
| f |
15 |
D-Pad right |
| g |
16 |
Vendor |
Keyboard Gamepad Emulation & Gamepad API Wrapper Lib Example
D-Pad buttons & button 0-3 can be held down in this example configuration.
Hold CTRL to touch rather than press a button
[]-+ are mapped to the left joystick.
←→↑↓ are mapped to the right joystick.
------ EVENTS ------