From 0eefab146e34fe8b426428bb191b2bd2b40b9ab5 Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Thu, 19 Jan 2017 19:36:40 +0000 Subject: [PATCH] silence log output for unknown input --- src/core/linux/SDL_evdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index fd1e26de2..3c00089dd 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -525,11 +525,13 @@ SDL_EVDEV_translate_keycode(int keycode) if (keycode < SDL_arraysize(linux_scancode_table)) scancode = linux_scancode_table[keycode]; + /* if (scancode == SDL_SCANCODE_UNKNOWN) { 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 " " EVDEV KeyCode %d\n", keycode); } + */ return scancode; }