Skip to content

Commit e8cdd26

Browse files
committed
MEGA65+C65: add missing F' keys to keymapping
Problem discovered/reported by nobruinfo(PieroBelgetti) on Discord, thanks! In commit 5b3f11f ( originally from dev in commit 5e4178d ) F10 was made remappable. However it seems, the keyboard mapping misses the actual definitions of F9,... keys.
1 parent 3680129 commit e8cdd26

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

xemu/c64_kbd_mapping.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
2-
Copyright (C)2016-2022 LGB (Gábor Lénárt) <[email protected]>
2+
Copyright (C)2016-2024 LGB (Gábor Lénárt) <[email protected]>
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -126,11 +126,14 @@ const struct KeyMappingDefault c64_key_map[] = {
126126
{ SDL_SCANCODE_UNKNOWN, SCRL_KEY_POS, "NOSCROLL" }, // NO SCROLL: FIXME: where should we map this key to?
127127
{ SDL_SCANCODE_TAB, TAB_KEY_POS, "TAB" }, // TAB
128128
{ SDL_SCANCODE_RALT, ALT_KEY_POS, "ALT" }, // ALT on C65: right alt (AltGr) on PC [left ALT on PC is used as the commodore key]
129-
{ SDL_SCANCODE_PAGEUP, C65_KEYBOARD_EXTRA_POS + 3, "HELP" }, // HELP: FIXME: where should we map this key to?
130-
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 4, "F9" }, // F9/F10: FIXME: where should we map this key to?
131-
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 5, "F11" }, // F11/F12: FIXME: where should we map this key to?
132-
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 6, "F13" }, // F13/F14: FIXME: where should we map this key to?
133-
{ SDL_SCANCODE_ESCAPE, C65_KEYBOARD_EXTRA_POS + 7, "ESC" }, // ESC
129+
{ SDL_SCANCODE_PAGEUP, C65_KEYBOARD_EXTRA_POS + 3, "HELP" },
130+
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 4, "F9" },
131+
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + (4 | 8), "F10*" },
132+
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 5, "F11" },
133+
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + (5 | 8), "F12*" },
134+
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 6, "F13" },
135+
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + (6 | 8), "F14*" },
136+
{ SDL_SCANCODE_ESCAPE, C65_KEYBOARD_EXTRA_POS + 7, "ESC" },
134137
#endif
135138
// **** Emulates joystick with keypad
136139
STD_XEMU_SPECIAL_KEYS,

0 commit comments

Comments
 (0)