diff options
Diffstat (limited to 'src/game/client/gameclient.cpp')
| -rw-r--r-- | src/game/client/gameclient.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 9c13c107..fe9b0476 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -216,10 +216,13 @@ void GAMECLIENT::dispatch_input() // handle mouse movement int x=0, y=0; inp_mouse_relative(&x, &y); - for(int h = 0; h < input.num; h++) + if(x || y) { - if(input.components[h]->on_mousemove(x, y)) - break; + for(int h = 0; h < input.num; h++) + { + if(input.components[h]->on_mousemove(x, y)) + break; + } } // handle key presses |