mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Fix a small bug in the mouse feed code.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user