-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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, | ||
|