]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
HUD config: when a menu dialog is opened don't block mousepos read as it leads to...
authorterencehill <piuntn@gmail.com>
Tue, 7 Jan 2014 23:40:52 +0000 (00:40 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 7 Jan 2014 23:40:52 +0000 (00:40 +0100)
qcsrc/client/hud_config.qc

index d361454843feea745f877ba898872a4dd2ea467a..1836ba23f061de82a147a15f3368cec98fd8a19d 100644 (file)
@@ -651,10 +651,6 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
        if(!autocvar__hud_configure)
                return false;
 
-       // block any input while a menu dialog is fading
-       if(autocvar__menu_alpha)
-               return true;
-
        if(bInputType == 3)
        {
                mousepos_x = nPrimary;
@@ -662,6 +658,11 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
                return true;
        }
 
+       // 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)
+               return true;
+
        // allow console bind to work
        string con_keys;
        float keys;