Skip to content

Commit

Permalink
MEGA65+C65: add missing F' keys to keymapping
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lgblgblgb committed Dec 5, 2024
1 parent 3680129 commit e8cdd26
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions xemu/c64_kbd_mapping.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
Copyright (C)2016-2022 LGB (Gábor Lénárt) <[email protected]>
Copyright (C)2016-2024 LGB (Gábor Lénárt) <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -126,11 +126,14 @@ const struct KeyMappingDefault c64_key_map[] = {
{ SDL_SCANCODE_UNKNOWN, SCRL_KEY_POS, "NOSCROLL" }, // NO SCROLL: FIXME: where should we map this key to?
{ SDL_SCANCODE_TAB, TAB_KEY_POS, "TAB" }, // TAB
{ 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]
{ SDL_SCANCODE_PAGEUP, C65_KEYBOARD_EXTRA_POS + 3, "HELP" }, // HELP: FIXME: where should we map this key to?
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 4, "F9" }, // F9/F10: FIXME: where should we map this key to?
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 5, "F11" }, // F11/F12: FIXME: where should we map this key to?
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 6, "F13" }, // F13/F14: FIXME: where should we map this key to?
{ SDL_SCANCODE_ESCAPE, C65_KEYBOARD_EXTRA_POS + 7, "ESC" }, // ESC
{ SDL_SCANCODE_PAGEUP, C65_KEYBOARD_EXTRA_POS + 3, "HELP" },
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 4, "F9" },
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + (4 | 8), "F10*" },
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 5, "F11" },
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + (5 | 8), "F12*" },
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + 6, "F13" },
{ SDL_SCANCODE_UNKNOWN, C65_KEYBOARD_EXTRA_POS + (6 | 8), "F14*" },
{ SDL_SCANCODE_ESCAPE, C65_KEYBOARD_EXTRA_POS + 7, "ESC" },
#endif
// **** Emulates joystick with keypad
STD_XEMU_SPECIAL_KEYS,
Expand Down

0 comments on commit e8cdd26

Please sign in to comment.