From 144ca75b9c0d61dab30ef0ebafc44c69c5457f5e Mon Sep 17 00:00:00 2001 From: erysdren Date: Wed, 4 Dec 2024 09:52:50 -0600 Subject: [PATCH] MENU: fix console not opening in menu --- source/menu/main.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/menu/main.qc b/source/menu/main.qc index a26fcd4..3e2a82d 100644 --- a/source/menu/main.qc +++ b/source/menu/main.qc @@ -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)