mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r1932) Fix: [SDL] On Linux console, the backquote scancode is 41. Let's hope nothing conflicts with it in X.
This commit is contained in:
parent
0566d80b16
commit
b2b0f8b3f6
1
sdl.c
1
sdl.c
@ -430,6 +430,7 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
|
|||||||
if (sym->scancode == 60) key |= WKC_BACKQUOTE;
|
if (sym->scancode == 60) key |= WKC_BACKQUOTE;
|
||||||
if (sym->scancode == 49) key |= WKC_BACKSPACE;
|
if (sym->scancode == 49) key |= WKC_BACKSPACE;
|
||||||
#else
|
#else
|
||||||
|
if (sym->scancode == 41) key |= WKC_BACKQUOTE; // Linux console
|
||||||
if (sym->scancode == 49) key |= WKC_BACKQUOTE;
|
if (sym->scancode == 49) key |= WKC_BACKQUOTE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user