silence log output for unknown input

This commit is contained in:
Jools Wills 2017-01-19 19:36:40 +00:00
parent 977c0422dd
commit 7fff11a253

View file

@ -446,6 +446,7 @@ 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) {
/* BTN_TOUCH is handled elsewhere, but we might still end up here if /* BTN_TOUCH is handled elsewhere, but we might still end up here if
you get an unexpected BTN_TOUCH from something SDL believes is not you get an unexpected BTN_TOUCH from something SDL believes is not
@ -457,6 +458,7 @@ SDL_EVDEV_translate_keycode(int keycode)
"<https://discourse.libsdl.org/> EVDEV KeyCode %d", keycode); "<https://discourse.libsdl.org/> EVDEV KeyCode %d", keycode);
} }
} }
*/
return scancode; return scancode;
} }