[SDL] Reading text from keyboard

Johannes Schmidt sdl at myrealbox.com
Sat Jan 18 06:42:00 PST 2003

On Saturday 18 January 2003 14:06, Milo Spirig wrote:
> Thanks for everybody's help, the code works now but it's pretty weird. If a
> call SDL_EnableUNICODE(1) when I initialize my programm it doesen't work,
> but if I call the function every frame it does. I don't know what's the
> problem, but I'm happy that it finally works :)

You'll have to ensure that you call SDL_EnableUNICODE(1) after SDL_Init.

SDL_Init overides the unicode flag with the default value (which means 
disabling it).

Johannes Schmidt

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

More information about the SDL mailing list