mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
main.c (main): The Shift+ESC console key bing is not restricted to LSHIFT
any more: changed the mask from KMOD_LSHIFT to KMOD_SHIFT. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@22 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
68fc38c3a6
commit
95f413d1ea
1 changed files with 2 additions and 2 deletions
|
@ -113,8 +113,8 @@ int main(int argc, char *argv[])
|
|||
break;
|
||||
case SDL_KEYDOWN:
|
||||
case SDL_KEYUP:
|
||||
// LSHIFT + ESC and circomflex always opens the console no matter what
|
||||
if ((event.key.keysym.sym == SDLK_ESCAPE && (event.key.keysym.mod & KMOD_LSHIFT) != 0)
|
||||
// SHIFT + ESC and circomflex always opens the console no matter what
|
||||
if ((event.key.keysym.sym == SDLK_ESCAPE && (event.key.keysym.mod & KMOD_SHIFT))
|
||||
|| (event.key.keysym.sym == SDLK_CARET))
|
||||
{
|
||||
if (event.key.type == SDL_KEYDOWN)
|
||||
|
|
Loading…
Reference in a new issue