diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:53:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:53:40 +0300 |
commit | f29616d8d1309ee135afe2b2e7baf1d91d677a95 (patch) | |
tree | 77624591a88075bc2b1128520d950c717d353288 /src/gui/gui.h | |
parent | ec51be4fd71babf30a73332bc4b73edb994ee462 (diff) | |
download | manaverse-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.gz manaverse-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.bz2 manaverse-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.xz manaverse-f29616d8d1309ee135afe2b2e7baf1d91d677a95.zip |
Convert MouseButton enum into strong typed enum.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 21cf7e015..b1d443b81 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -329,7 +329,7 @@ class Gui final void distributeMouseEvent(Widget *const source, const MouseEventType::Type type, - const MouseButton::Type button, + const MouseButtonT button, const int x, const int y, const bool force = false, const bool toSourceOnly = false); @@ -468,7 +468,7 @@ class Gui final /** * Holds the last mouse button pressed. */ - MouseButton::Type mLastMousePressButton; + MouseButtonT mLastMousePressButton; /** * Holds the last mouse press time stamp. @@ -496,7 +496,7 @@ class Gui final * was initiated. Used to be able to release a drag * when the same button is released. */ - MouseButton::Type mLastMouseDragButton; + MouseButtonT mLastMouseDragButton; /** * Holds a stack with all the widgets with the mouse. |