From 36ce6563292d05dea51deb5d81b8782ddf3d6d5a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 16 Aug 2011 13:21:13 +0200 Subject: [PATCH] fix an issue in input event processing in some cases, mouse movement events were treated as key release events --- qcsrc/client/hud_config.qc | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2