mirror of https://github.com/OpenTTD/OpenTTD
(svn r983) SunOS: fixed backspace key (Oskar)
parent
2bb5145a20
commit
ec40598d4c
2
sdl.c
2
sdl.c
|
@ -418,9 +418,11 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
|
||||||
if (sym->scancode == 17) key |= WKC_BACKQUOTE;
|
if (sym->scancode == 17) key |= WKC_BACKQUOTE;
|
||||||
#elif defined(__SVR4) && defined(__sun)
|
#elif defined(__SVR4) && defined(__sun)
|
||||||
if (sym->scancode == 60) key |= WKC_BACKQUOTE;
|
if (sym->scancode == 60) key |= WKC_BACKQUOTE;
|
||||||
|
if (sym->scancode == 49) key |= WKC_BACKSPACE;
|
||||||
#else
|
#else
|
||||||
if (sym->scancode == 49) key |= WKC_BACKQUOTE;
|
if (sym->scancode == 49) key |= WKC_BACKQUOTE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// META are the command keys on mac
|
// META are the command keys on mac
|
||||||
if (sym->mod & KMOD_META) key |= WKC_META;
|
if (sym->mod & KMOD_META) key |= WKC_META;
|
||||||
if (sym->mod & KMOD_SHIFT) key |= WKC_SHIFT;
|
if (sym->mod & KMOD_SHIFT) key |= WKC_SHIFT;
|
||||||
|
|
Loading…
Reference in New Issue