Skip to content

Commit

Permalink
MENU: fix console not opening in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Dec 4, 2024
1 parent 81b12b2 commit 144ca75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/menu/main.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 144ca75

Please sign in to comment.