]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix an issue in input event processing
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Aug 2011 11:21:13 +0000 (13:21 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Aug 2011 11:24:18 +0000 (13:24 +0200)
in some cases, mouse movement events were treated as key release events

qcsrc/client/hud_config.qc

index 9ff1e0e90a5c1b5ae651c65a25d0d295323d3281..109a9cf54a239b17e7280f2aa15823c06c3614f6 100644 (file)
@@ -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;