silence log output for unknown input
This commit is contained in:
parent
f486f87816
commit
4802823b94
1 changed files with 2 additions and 0 deletions
|
@ -396,11 +396,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 forums/mailing list "
|
"get this fixed, please report this to the SDL forums/mailing list "
|
||||||
"<https://discourse.libsdl.org/> EVDEV KeyCode %d", keycode);
|
"<https://discourse.libsdl.org/> EVDEV KeyCode %d", keycode);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return scancode;
|
return scancode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue