silence log output for unknown input

This commit is contained in:
Jools Wills 2017-01-19 19:36:40 +00:00
parent 9bad63d9c2
commit 0eefab146e

View file

@ -525,11 +525,13 @@ SDL_EVDEV_translate_keycode(int keycode)
if (keycode < SDL_arraysize(linux_scancode_table)) if (keycode < SDL_arraysize(linux_scancode_table))
scancode = linux_scancode_table[keycode]; scancode = linux_scancode_table[keycode];
/*
if (scancode == SDL_SCANCODE_UNKNOWN) { if (scancode == SDL_SCANCODE_UNKNOWN) {
SDL_Log("The key you just pressed is not recognized by SDL. To help " SDL_Log("The key you just pressed is not recognized by SDL. To help "
"get this fixed, please report this to the SDL mailing list " "get this fixed, please report this to the SDL mailing list "
"<sdl@libsdl.org> EVDEV KeyCode %d\n", keycode); "<sdl@libsdl.org> EVDEV KeyCode %d\n", keycode);
} }
*/
return scancode; return scancode;
} }