From cf304095eddc60240015b07386d0a6898100eaed Mon Sep 17 00:00:00 2001 From: iProgramInCpp Date: Fri, 11 Aug 2023 10:13:54 +0300 Subject: [PATCH] * Fix a small bug in the mouse feed code. --- source/client/player/input/Mouse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/client/player/input/Mouse.cpp b/source/client/player/input/Mouse.cpp index ce4dd50..9e445bf 100644 --- a/source/client/player/input/Mouse.cpp +++ b/source/client/player/input/Mouse.cpp @@ -16,7 +16,10 @@ void Mouse::feed(int x1, int x2, int x3, int x4) { _inputs.push_back(MouseInput(x1, x2, x3, x4)); - if (x1) + if (x1 >= 3) + return; + + if (x1 != 0) Mouse::_buttonStates[x1] = x2; _xOld = _x;