[SDL] SDL 1.3: Keyboard layout handling

greno greno at verizon.net
Fri May 27 13:43:51 PDT 2011


The definition of the SDLK_xx constants have changed from 1.2 to 1.3.


Code:
$ grep -RHn SDLK_g /usr/local/include/SDL
/usr/local/include/SDL/SDL_keycode.h:103:    SDLK_g = 'g',
$ grep -RHn SDLK_g /usr/include/SDL
/usr/include/SDL/SDL_keysym.h:89:	SDLK_g			= 103,  /* 'G' */



SDLK_g went from being an uppercase 'G' to a lowercase 'g'.

So it's pretty difficult to use SDLK_g to compare to event->key.keysym.sym since in 1.3 SDLK_g is lowercase but keysym is uppercase.

.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110527/c810ffe2/attachment.htm>


More information about the SDL mailing list