Merge branch 'fix-console-double-mapping' into 'next'

Fix console binds incorrectly respecting keyboard layout

See merge request STJr/SRB2!2295
This commit is contained in:
sphere 2024-02-08 21:35:05 +00:00
commit 51f0758c47

View file

@ -983,7 +983,7 @@ boolean CON_Responder(event_t *ev)
if (modeattacking || metalrecording || marathonmode) if (modeattacking || metalrecording || marathonmode)
return false; return false;
if ((key == gamecontrol[GC_CONSOLE][0] || key == gamecontrol[GC_CONSOLE][1]) && !shiftdown) if (ev->type == ev_keydown && ((key == gamecontrol[GC_CONSOLE][0] || key == gamecontrol[GC_CONSOLE][1]) && !shiftdown))
{ {
if (consdown) // ignore repeat if (consdown) // ignore repeat
return true; return true;