summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 23:00:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 23:00:27 +0300
commitc4e3b6cb2c4d8dceb45ee2da549ec42daabc053d (patch)
tree8a0c6d02cc7d7bd8994c2ac26bc14efbbd677b75 /src/gui/gui.h
parentf3f5a316ca62e9d17776d4a49aab728aee65a5b5 (diff)
downloadplus-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.tar.gz
plus-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.tar.bz2
plus-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.tar.xz
plus-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.zip
fix mouse wheel usage in SDL2.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h6
1 files changed, 6 insertions, 0 deletions
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);