mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
Make Shift+Escape toggle the console.
This commit is contained in:
parent
f36f708b24
commit
8b28e3d0df
1 changed files with 12 additions and 1 deletions
|
@ -148,7 +148,18 @@ IN_TranslateSDLtoQ2Key(unsigned int keysym)
|
||||||
key = K_UPARROW;
|
key = K_UPARROW;
|
||||||
break;
|
break;
|
||||||
case SDLK_ESCAPE:
|
case SDLK_ESCAPE:
|
||||||
key = K_ESCAPE;
|
/* Make Shift+Escape toggle the console. This
|
||||||
|
really belongs in Key_Event(), but since
|
||||||
|
Key_ClearStates() can mess up the internal
|
||||||
|
K_SHIFT state let's do it here instead. */
|
||||||
|
if (KeyStates[SDLK_LSHIFT] || KeyStates[SDLK_RSHIFT])
|
||||||
|
{
|
||||||
|
key = '~';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
key = K_ESCAPE;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDLK_KP_ENTER:
|
case SDLK_KP_ENTER:
|
||||||
key = K_KP_ENTER;
|
key = K_KP_ENTER;
|
||||||
|
|
Loading…
Reference in a new issue