2016-10-23 16:38:22 -04:00
|
|
|
## PS/2 keyboard as 4 USB-joysticks
|
|
|
|
|
2016-10-23 16:40:47 -04:00
|
|
|
![PS2-adapter](https://raw.githubusercontent.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/master/Images/ps2-keyboard-adapter.jpg)
|
|
|
|
|
2016-10-23 16:38:22 -04:00
|
|
|
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).
|
|
|
|
|
2016-10-23 16:43:02 -04:00
|
|
|
Edit button assignments manually.
|
|
|
|
|
|
|
|
Joystick 1:
|
2016-10-23 16:43:24 -04:00
|
|
|
```
|
2016-10-23 16:43:02 -04:00
|
|
|
arrows = up/down/left/right
|
|
|
|
R-ctrl = a
|
|
|
|
alt gr = b
|
|
|
|
enter = start
|
|
|
|
R-shift = select
|
2016-10-23 16:43:24 -04:00
|
|
|
```
|
2016-10-23 16:43:02 -04:00
|
|
|
|
|
|
|
Joystick 2:
|
2016-10-23 16:43:24 -04:00
|
|
|
```
|
2016-10-23 16:43:02 -04:00
|
|
|
W/S/A/D = up/down/left/right
|
|
|
|
L-ctrl = a
|
|
|
|
L-alt = b
|
|
|
|
tab = start
|
|
|
|
L-shift = select
|
2016-10-23 16:43:24 -04:00
|
|
|
```
|
2016-10-23 16:43:02 -04:00
|
|
|
|
2016-10-23 16:38:22 -04:00
|
|
|
## Links
|
|
|
|
|
|
|
|
http://playground.arduino.cc/Main/PS2Keyboard
|
|
|
|
|
|
|
|
http://www.computer-engineering.org/ps2protocol/
|
|
|
|
|
|
|
|
http://www.computer-engineering.org/ps2keyboard/scancodes2.html
|