[SDL] Problem with uppercase characters.
Colin Tuckley
colin at tuckley.org
Sun Jan 7 01:17:54 PST 2007
Bill Conan wrote:
> can i determine whether the key event is generated by normal keys or
> by modifiers? i think every time i press the shift key, it generates a
> key down event before i press the character key. and that is why i
> always get the keycode 0.
Yes, *every* key generates an event.
You need another switch statement inside the case SDL_KEYDOWN which does
stuff for each key. Hint, do a case for each special key (like shift) and
let default do all the usual keys (like characters).
Colin
--
Colin Tuckley | colin at tuckley.org | PGP/GnuPG Key Id
+44(0)1903 236872 | +44(0)7799 143369 | 0x1B3045CE
"Apple" (c) Copyright 1767, Sir Isaac Newton.
More information about the SDL
mailing list