/* See if we need to rebuild the keyboard layout */
UpdateKeymap(data);
}
SDL_SendKeyboardKey(SDL_PRESSED,code);
SDL_SendKeyboardKey(SDL_PRESSED,code);
#if 1
if(code==SDL_SCANCODE_UNKNOWN){
fprintf(stderr,"The key you just pressed is not recognized by SDL. To help get this fixed, report this to the SDL mailing list <sdl@libsdl.org> or to Christian Walther <cwalther@gmx.ch>. Mac virtual key code is %d.\n",scancode);
}
#endif
if(code==SDL_SCANCODE_UNKNOWN){
fprintf(stderr,"The key you just pressed is not recognized by SDL. To help get this fixed, report this to the SDL mailing list <sdl@libsdl.org> or to Christian Walther <cwalther@gmx.ch>. Mac virtual key code is %d.\n",scancode);
}
#endif
if(SDL_EventState(SDL_TEXTINPUT,SDL_QUERY)){
/* FIXME CW 2007-08-16: only send those events to the field editor for which we actually want text events, not e.g. esc or function keys. Arrow keys in particular seem to produce crashes sometimes. */