diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-24 23:00:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 23:00:27 +0300 |
commit | c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d (patch) | |
tree | 8a0c6d02cc7d7bd8994c2ac26bc14efbbd677b75 /src/gui/gui.h | |
parent | f3f5a316ca62e9d17776d4a49aab728aee65a5b5 (diff) | |
download | mv-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.tar.gz mv-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.tar.bz2 mv-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.tar.xz mv-c4e3b6cb2c4d8dceb45ee2da549ec42daabc053d.zip |
fix mouse wheel usage in SDL2.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 6 |
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); |