From: Rudolf Polzer Date: Tue, 16 Aug 2011 11:21:13 +0000 (+0200) Subject: fix an issue in input event processing X-Git-Tag: xonotic-v0.5.0~139 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=36ce6563292d05dea51deb5d81b8782ddf3d6d5a;p=xonotic%2Fxonotic-data.pk3dir.git fix an issue in input event processing in some cases, mouse movement events were treated as key release events --- diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index 9ff1e0e90..109a9cf54 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -572,6 +572,10 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) { string s; + // we only care for keyboard events + if(bInputType != 0 && bInputType != 1) + return false; + if(!autocvar__hud_configure) return false;