mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-19 15:50:52 +00:00
MENU: fix console not opening in menu
This commit is contained in:
parent
81b12b2118
commit
144ca75b9c
1 changed files with 9 additions and 0 deletions
|
@ -303,6 +303,15 @@ float(float evtype, float scanx, float chary, float devid) Menu_InputEvent =
|
|||
_sui_binding_command_name = "";
|
||||
}
|
||||
|
||||
// HACK: we issue a toggleconsole cmd because the engine doesn't seem to
|
||||
// do it on its own. stupid stupid stupid. also, return TRUE so the engine
|
||||
// thinks we did something else with the input. -- erysdren
|
||||
if (evtype == IE_KEYDOWN && getkeybind(scanx) == "toggleconsole")
|
||||
{
|
||||
localcmd("toggleconsole\n");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
float used = sui_input_event(evtype, scanx, chary, devid);
|
||||
|
||||
if (evtype == IE_KEYDOWN && !used)
|
||||
|
|
Loading…
Reference in a new issue