mirror of
https://github.com/trudnai/Steve2.git
synced 2024-06-04 12:29:33 +00:00
- 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:
parent
c5f16cd15a
commit
3042a98d64
|
@ -302,18 +302,18 @@ class ViewController: NSViewController {
|
||||||
pdl_valarr[0] = 1
|
pdl_valarr[0] = 1
|
||||||
|
|
||||||
case downArrowKey:
|
case downArrowKey:
|
||||||
kbdInput(0x0B)
|
// kbdInput(0x0B)
|
||||||
// setIO(0xC065, 255);
|
// setIO(0xC065, 255);
|
||||||
print("DOWN")
|
print("DOWN")
|
||||||
// Keyboard 2 JoyStick (Game Controller / Paddle)
|
// Keyboard 2 JoyStick (Game Controller / Paddle)
|
||||||
pdl_valarr[1] = 0
|
pdl_valarr[1] = 1
|
||||||
|
|
||||||
case upArrowKey:
|
case upArrowKey:
|
||||||
kbdInput(0x0A)
|
// kbdInput(0x0A)
|
||||||
// setIO(0xC065, 0);
|
// setIO(0xC065, 0);
|
||||||
print("UP")
|
print("UP")
|
||||||
// Keyboard 2 JoyStick (Game Controller / Paddle)
|
// Keyboard 2 JoyStick (Game Controller / Paddle)
|
||||||
pdl_valarr[1] = 1
|
pdl_valarr[1] = 0
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// print("keycode: %d", keyCode)
|
// print("keycode: %d", keyCode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user