From a40ab7ba625088d7362c746389e49c9ef81b7bad Mon Sep 17 00:00:00 2001
From: David Gow <[EMAIL REDACTED]>
Date: Wed, 9 Jun 2021 14:33:06 +0800
Subject: [PATCH] Scancode20to12: Fix missing scancode for 'U'
Whoops, this was a copy-paste error on my part: the scancode for 'U' was
missing (set to 0x00) for non Mac OS X systems. On keyboard layouts
which have 'U' in the same position as US English, the fallback to SDLK_
values hid this issue.
The 'U' key should work properly now in things like DOSBox which use
scancodes.
---
src/SDL12_compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 0b9e7e7..dbc64b5 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2494,7 +2494,7 @@ Scancode20to12(SDL_Scancode sc)
CASESCANCODE20TO12(SPACE, 0x41, 0x31);
CASESCANCODE20TO12(T, 0x1C, 0x11);
CASESCANCODE20TO12(TAB, 0x17, 0x30);
- CASESCANCODE20TO12(U, 0x00, 0x20);
+ CASESCANCODE20TO12(U, 0x1E, 0x20);
CASESCANCODE20TO12(UP, 0x00, 0x7E);
CASESCANCODE20TO12(V, 0x37, 0x09);
CASESCANCODE20TO12(W, 0x19, 0x0D);