[PATCH] Fix: names in keymap should be interpreted as symbolic ones |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- Subject: [PATCH] Fix: names in keymap should be interpreted as symbolic ones
- From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Date: Sun, 21 Nov 2021 20:44:23 +0200
---
src/keymap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/keymap.c b/src/keymap.c
index 775734ad..7ce7bc7d 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -812,8 +812,8 @@ static bool HostSpecToKeymap(const char *spec, KeyMapping* mapping)
mods = mod;
continue;
}
- /* is it non-modifier key? */
- code = SDL_GetScancodeFromName(token);
+ /* is it non-modifier, symbolic key name? */
+ code = SDL_GetScancodeFromKey(SDL_GetKeyFromName(token));
if (code)
{
if (scancode)
--
2.30.2
--------------6D59CF2683B8E6D297AA7665
Content-Type: text/x-patch; charset=UTF-8;
name="0001-Accept-any-kind-of-symbolic-SDL-key-names.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-Accept-any-kind-of-symbolic-SDL-key-names.patch"