1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-12-21 23:18:56 -05:00

Update RetroJoystickAdapter_PS2-keyboard.ino

This commit is contained in:
Jarno Lehtinen 2016-10-23 23:59:45 +03:00 committed by GitHub
parent c1c5d422ce
commit 0a8f56ec3d

View File

@ -189,7 +189,7 @@ void loop() {
Serial.println(code, HEX);
#endif
//set function parameters: code, joystick (0-3), data (0 or 1), bit (0-7)
//set-function parameters: code, joystick (0-3), data (0 or 1), bit (0-7)
// if e is 1, it means codes with E0 prefix
if (e == 1 && c == 0x75) set(code, 0, 1, 0); // up
if (e == 1 && c == 0x72) set(code, 0, 1, 1); // down