From 01dbf0742439ac3e77f8a0e5db3ce31678b98762 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Fri, 6 Oct 2023 21:50:56 +1000 Subject: [PATCH] input: activate DP_BUTTONCHAT if the window is hidden or loses focus Signed-off-by: bones_was_here --- cl_input.c | 2 +- dpdefs/dpextensions.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_input.c b/cl_input.c index 0e9bc59d..6281e925 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1806,7 +1806,7 @@ void CL_SendMove(void) if (in_button7.state & 3) bits |= 64; if (in_button8.state & 3) bits |= 128; if (in_use.state & 3) bits |= 256; - if (key_dest != key_game || key_consoleactive) bits |= 512; + if (key_dest != key_game || key_consoleactive || !vid_activewindow) bits |= 512; if (cl_prydoncursor.integer > 0) bits |= 1024; if (in_button9.state & 3) bits |= 2048; if (in_button10.state & 3) bits |= 4096; diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index faf6dcdd..3978698c 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -35,7 +35,7 @@ float(string s) checkextension = #99; //field definitions: .float buttonchat; //description: -//true if the player is currently chatting (in messagemode, menus or console) +//true if the player is currently chatting (in messagemode, menus or console) or if their game window is not active. //DP_BUTTONUSE //idea: id Software -- 2.39.2