[SDL] The keyboard in SDL

Christian Walther cwalther at gmx.ch
Fri Feb 2 10:15:07 PST 2007


  Kuon - Nicolas Goy - 時期精霊 (Goyman.com SA) wrote:
> On Feb 1, 2007, at 10:05 PM, Christer Sandberg wrote:
>> Is there a function in SDL that performs a translation needed for  
>> this
> 
> your answer is "man 3 iconv".

In fact, SDL brings its own version of that (SDL_iconv) that wraps the 
system version or uses its own implementation on systems that don't have 
it. I'm not sure if it's documented anywhere (the wiki seems to be 
unreachable at the moment), but have a look at the bottom of 
<http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/include/SDL_stdinc.h?view=markup>, 
or 
<http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/stdlib/SDL_iconv.c?view=markup> 
for the implementation.

  -Christian




More information about the SDL mailing list