From c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 23:00:27 +0300 Subject: fix mouse wheel usage in SDL2. --- src/gui/gui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/gui.h') diff --git a/src/gui/gui.h b/src/gui/gui.h index 0b4b4a292..3cdab558d 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -157,6 +157,12 @@ class Gui final : public gcn::Gui void removeDragged(gcn::Widget *widget); + int getLastMouseX() + { return mLastMouseX; } + + int getLastMouseY() + { return mLastMouseY; } + protected: void handleMouseMoved(const gcn::MouseInput &mouseInput); -- cgit v1.2.3-70-g09d2