mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-22 09:30:19 +00:00
Extra Apple //e keys
This commit is contained in:
parent
3dbb90d0ca
commit
8ea3abe2ff
@ -67,8 +67,6 @@ func (k *sdlKeyboard) putKey(keyEvent *sdl.KeyboardEvent) {
|
||||
switch key.Sym {
|
||||
case sdl.K_ESCAPE:
|
||||
result = 27
|
||||
case sdl.K_DELETE:
|
||||
result = 24
|
||||
case sdl.K_BACKSPACE:
|
||||
result = 8
|
||||
case sdl.K_RETURN:
|
||||
@ -83,13 +81,19 @@ func (k *sdlKeyboard) putKey(keyEvent *sdl.KeyboardEvent) {
|
||||
case sdl.K_RIGHT:
|
||||
result = 21
|
||||
|
||||
// Base64A clone particularities
|
||||
case sdl.K_F2:
|
||||
result = 127
|
||||
// Apple //e
|
||||
case sdl.K_UP:
|
||||
result = 31
|
||||
result = 11 // 31 in the Base64A
|
||||
case sdl.K_DOWN:
|
||||
result = 10
|
||||
case sdl.K_TAB:
|
||||
result = 9
|
||||
case sdl.K_DELETE:
|
||||
result = 127 // 24 in the Base64A
|
||||
|
||||
// Base64A clone particularities
|
||||
case sdl.K_F2:
|
||||
result = 127 // Base64A
|
||||
|
||||
// Control of the emulator
|
||||
case sdl.K_F5:
|
||||
|
Loading…
Reference in New Issue
Block a user