]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
HUD config: release mouse buttons and reset modifier keys on menu open
authorterencehill <piuntn@gmail.com>
Wed, 8 Jan 2014 17:57:57 +0000 (18:57 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 8 Jan 2014 17:57:57 +0000 (18:57 +0100)
qcsrc/client/hud_config.qc

index 1836ba23f061de82a147a15f3368cec98fd8a19d..c5ead2256c34f58f1f4e66b20161ba632513d5a7 100644 (file)
@@ -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;