- Removed Up and Down Arrow Keys to better support of Keyboard 2 Joystick

- Fix: Inverted Up and Down Keyboard 2 Mouse
This commit is contained in:
tudnai 2020-05-25 19:34:02 -07:00
parent c5f16cd15a
commit 3042a98d64
1 changed files with 4 additions and 4 deletions

View File

@ -302,18 +302,18 @@ class ViewController: NSViewController {
pdl_valarr[0] = 1
case downArrowKey:
kbdInput(0x0B)
// kbdInput(0x0B)
// setIO(0xC065, 255);
print("DOWN")
// Keyboard 2 JoyStick (Game Controller / Paddle)
pdl_valarr[1] = 0
pdl_valarr[1] = 1
case upArrowKey:
kbdInput(0x0A)
// kbdInput(0x0A)
// setIO(0xC065, 0);
print("UP")
// Keyboard 2 JoyStick (Game Controller / Paddle)
pdl_valarr[1] = 1
pdl_valarr[1] = 0
default:
// print("keycode: %d", keyCode)