From: terencehill Date: Tue, 7 Jan 2014 23:40:52 +0000 (+0100) Subject: HUD config: when a menu dialog is opened don't block mousepos read as it leads to... X-Git-Tag: xonotic-v0.8.0~226^2~6^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1399d4ad51f6bb17964b9d4c66316f01dc7d5b11;p=xonotic%2Fxonotic-data.pk3dir.git HUD config: when a menu dialog is opened don't block mousepos read as it leads to cursor jumps in the interaction with the menu --- diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index d36145484..1836ba23f 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -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;