silence log output for unknown input
This commit is contained in:
parent
9bad63d9c2
commit
0eefab146e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue