mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2025-02-26 08:21:46 -05:00
38 lines
757 B
Markdown
38 lines
757 B
Markdown
## PS/2 keyboard as 4 USB-joysticks
|
|
|
|

|
|
|
|
Needs Atmega32u4 (e.g. Arduino Leonardo).
|
|
|
|
Needs custom ps2-library (PS2Keyboard_mcgurk.zip, unzip to libraries-folder).
|
|
|
|
Clock-signal must be in pin 2 (because of interrupts).
|
|
|
|
Edit button assignments manually.
|
|
|
|
Joystick 1:
|
|
```
|
|
arrows = up/down/left/right
|
|
R-ctrl = a
|
|
alt gr = b
|
|
enter = start
|
|
R-shift = select
|
|
```
|
|
|
|
Joystick 2:
|
|
```
|
|
W/S/A/D = up/down/left/right
|
|
L-ctrl = a
|
|
L-alt = b
|
|
tab = start
|
|
L-shift = select
|
|
```
|
|
|
|
## Links
|
|
|
|
http://playground.arduino.cc/Main/PS2Keyboard
|
|
|
|
http://www.computer-engineering.org/ps2protocol/
|
|
|
|
http://www.computer-engineering.org/ps2keyboard/scancodes2.html
|