[SDL] Reading text from keyboard

Johannes Schmidt sdl at myrealbox.com
Sat Jan 18 03:32:01 PST 2003


Hi Milo,

On Saturday 18 January 2003 11:57, Milo Spirig wrote:
[...]
> 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.

Your code works perfectly at my system.
Are you really sure that you have added unicode support?

Please send a complete minimal example for further testing.


-- 
Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL




More information about the SDL mailing list