the key state (up/down) now only stores the actual key, without modifiers (i.e. 'f' not 'F')
Fixes bug #144 (possibly 187 too?) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@826 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -127,11 +127,13 @@ ProcessKeyboardEvent(const SDL_Event *Event)
|
|||||||
kbdhead = (kbdhead + 1) & (KBDBUFSIZE - 1);
|
kbdhead = (kbdhead + 1) & (KBDBUFSIZE - 1);
|
||||||
if (map_key == AbortKey)
|
if (map_key == AbortKey)
|
||||||
exit(0);
|
exit(0);
|
||||||
KeyboardDown[UNICODEToKBD (map_key)] |= 0x3;
|
//Store the actual key (without nay shift/ctrl modifiers)
|
||||||
|
//since the modifiers can't be retreived on a key-up
|
||||||
|
KeyboardDown[k] |= 0x3;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
KeyboardDown[UNICODEToKBD (KBDToUNICODE (k))] &= (~0x1);
|
KeyboardDown[k] &= (~0x1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user