mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +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:
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user