[SDL] Reading text from keyboard
Milo Spirig
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
is
> 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.
Any ideas?
greetings
Milo Spirig
More information about the SDL
mailing list