[SDL] Reading text from keyboard
toytoy at gmx.ch
Sat Jan 18 02:59:01 PST 2003
> dang, man, you're making this waaaay more hard than it has to be... this
> what i use....
The code I'm using is from http://sdldoc.csn.ul.ie/sdlkeysym.php, so I think
it can't be that bad :)
But I replaced it now with:
if(Event.key.keysym.unicode < 0x80 && Event.key.keysym.unicode > 0)
But the unicode member of keysym is still always zero. I already tried to
use SDL_GetKeyName() and it gives me the correct key name.
More information about the SDL