mirror of
https://github.com/jtauber/applepy.git
synced 2025-02-16 17:30:27 +00:00
Merge pull request #8 from ghewgill/arrowkeys
map left/right arrow keys to ^H/^U
This commit is contained in:
commit
882e8478f8
@ -821,8 +821,12 @@ class CPU:
|
||||
quit = True
|
||||
|
||||
if event.type == pygame.KEYDOWN:
|
||||
if event.unicode:
|
||||
key = ord(event.unicode)
|
||||
key = ord(event.unicode) if event.unicode else 0
|
||||
if event.key == pygame.K_LEFT:
|
||||
key = 0x08
|
||||
if event.key == pygame.K_RIGHT:
|
||||
key = 0x15
|
||||
if key:
|
||||
if key == 0x7F:
|
||||
key = 0x08
|
||||
self.memory.softswitches.kbd = 0x80 + key
|
||||
|
Loading…
x
Reference in New Issue
Block a user