From: terencehill Date: Wed, 8 Jan 2014 17:57:57 +0000 (+0100) Subject: HUD config: release mouse buttons and reset modifier keys on menu open X-Git-Tag: xonotic-v0.8.0~226^2~6^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7fd0829346419680245ab89babb1070ac353fdb;p=xonotic%2Fxonotic-data.pk3dir.git HUD config: release mouse buttons and reset modifier keys on menu open --- diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index 1836ba23f..c5ead2256 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -661,7 +661,11 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) // block any input while a menu dialog is fading // don't block mousepos read as it leads to cursor jumps in the interaction with the menu if(autocvar__menu_alpha) + { + hudShiftState = 0; + mouseClicked = 0; return true; + } // allow console bind to work string con_keys;