From 8facb6dcb2f5eda0001db8ca68584cac4a9c4447 Mon Sep 17 00:00:00 2001 From: ghaushe Date: Tue, 25 Feb 2003 21:06:58 +0000 Subject: [PATCH] Fix 1->many mapping of keyboards (again) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@830 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/input/sdl/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/input/sdl/input.c b/sc2/src/sc2code/libs/input/sdl/input.c index 45cb4d14b..52f71a2b3 100644 --- a/sc2/src/sc2code/libs/input/sdl/input.c +++ b/sc2/src/sc2code/libs/input/sdl/input.c @@ -129,11 +129,11 @@ ProcessKeyboardEvent(const SDL_Event *Event) exit(0); //Store the actual key (without nay shift/ctrl modifiers) //since the modifiers can't be retreived on a key-up - KeyboardDown[k] |= 0x3; + KeyboardDown[UNICODEToKBD (KBDToUNICODE (k))] |= 0x3; } else { - KeyboardDown[k] &= (~0x1); + KeyboardDown[UNICODEToKBD (KBDToUNICODE (k))] &= (~0x1); } }