diff --git a/source/client/player/input/MouseDevice.hpp b/source/client/player/input/MouseDevice.hpp index 5ffdbe9..eba38c4 100644 --- a/source/client/player/input/MouseDevice.hpp +++ b/source/client/player/input/MouseDevice.hpp @@ -59,6 +59,11 @@ struct MouseAction class MouseDevice { public: + MouseDevice() + { + _index = -1; + } + void feed(MouseButtonType buttonType, bool buttonState, int posX, int posY); short getX(); short getY();