diff -Naur a/SDL2-2.0.5/src/core/linux/SDL_evdev.c b/SDL2-2.0.5/src/core/linux/SDL_evdev.c --- a/SDL2-2.0.5/src/core/linux/SDL_evdev.c 2016-10-19 21:56:26.000000000 -0600 +++ b/SDL2-2.0.5/src/core/linux/SDL_evdev.c 2017-01-05 15:42:42.083599278 -0700 @@ -142,7 +142,7 @@ }; static int SDL_EVDEV_is_console(int fd) { - int type; + char type; return isatty(fd) && ioctl(fd, KDGKBTYPE, &type) == 0 && (type == KB_101 || type == KB_84); @@ -344,7 +344,8 @@ } type = KTYP(kbe.kb_value); - + +#if 0 if (type < 0xf0) { /* * FIXME: keysyms with a type below 0xf0 represent a unicode character @@ -363,7 +364,8 @@ } type -= 0xf0; - +#endif + /* if type is KT_LETTER then it can be affected by Caps Lock */ if (type == KT_LETTER) { type = KT_LATIN;