[SDL] SDL with Vista Keyboard issue

necronology at cox.net necronology at cox.net
Wed Oct 3 09:21:48 PDT 2007


---- Tim Goya <tuxdev103 at gmail.com> wrote: 
> Don't interpret SDL keysyms into characters yourself, call
> SDL_EnableUNICODE and allow SDL to do the work for you.
> 
> Tim Goya
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

You mean this? /* Enable Unicode translation */
        SDL_EnableUNICODE( 1 );
Description
Enables/Disables Unicode keyboard translation.

To obtain the character codes corresponding to received keyboard events, Unicode translation must first be turned on using this function. The translation incurs a slight overhead for each keyboard event and is therefore disabled by default. For each subsequently received key down event, the unicode member of the SDL_keysym structure will then contain the corresponding character code, or zero for keysyms that do not correspond to any character code.
........................
So the keysym contains the code and I check it to see which one right? Is there another way?




More information about the SDL mailing list