mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +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
fb98c932b2
commit
71906d09b7
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