You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jarno Lehtinen 9b53599063 Update README.md 5 years ago
..
PS2Keyboard_mcgurk.zip Add files via upload 5 years ago
README.md Update README.md 5 years ago
RetroJoystickAdapter_PS2-keyboard.ino Update RetroJoystickAdapter_PS2-keyboard.ino 5 years ago

README.md

PS/2 keyboard as 4 USB-joysticks

PS2-adapter

Needs Atmega32u4 (e.g. Arduino Leonardo).

PS/2 is 5V.

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. Assignments are in the end of source file.

#define DEBUG if you want to see codes in console.

Joystick 0:

arrows = up/down/left/right
R-ctrl = a
alt gr = b
enter = start
R-shift = select

Joystick 1:

W/S/A/D = up/down/left/right
L-ctrl = a
L-alt = b
tab = start
L-shift = select

Joystick 2:

I/K/J/L = up/down/left/right
M = a
N = b
O = start
U = select

Joystick 3:

keypad 8/5/4/6 = up/down/left/right
keypad 0 = a
keypad , = b
keypad enter = start
keypad + = select

http://playground.arduino.cc/Main/PS2Keyboard

http://www.computer-engineering.org/ps2protocol/

http://www.computer-engineering.org/ps2keyboard/scancodes2.html