Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11events.c @ 4535:ce811c9247da
Added back in a little more debugging for the X11 keyboard code
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 18 Jul 2010 01:00:01 -0700 |
parents | a256e1dadf3f |
children | cc06f306c053 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c Sun Jul 18 00:54:26 2010 -0700 +++ b/src/video/x11/SDL_x11events.c Sun Jul 18 01:00:01 2010 -0700 @@ -34,7 +34,7 @@ #include "SDL_timer.h" #include "SDL_syswm.h" -/*#define DEBUG_XEVENTS*/ +#define DEBUG_XEVENTS static void X11_DispatchEvent(_THIS) @@ -181,7 +181,7 @@ printf("KeyPress (X11 keycode = 0x%X)\n", xevent.xkey.keycode); #endif SDL_SendKeyboardKey(SDL_PRESSED, videodata->key_layout[keycode]); -#if 0 +#if 1 if (videodata->key_layout[keycode] == SDLK_UNKNOWN) { int min_keycode, max_keycode; XDisplayKeycodes(display, &min_keycode, &max_keycode);