From 03c74387d37cefcc18e59db203d17d78cda40e8e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 May 2014 16:27:04 +0300 Subject: Move mousebutton into separate file. --- src/gui/gui.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/gui.h') diff --git a/src/gui/gui.h b/src/gui/gui.h index 6027625cb..5a1677ff2 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -68,6 +68,7 @@ #include "gui/color.h" +#include "events/mousebutton.h" #include "events/mouseeventtype.h" #include "resources/cursor.h" @@ -328,7 +329,7 @@ class Gui final void distributeMouseEvent(Widget *const source, const MouseEventType::Type type, - const int button, + const MouseButton::Type button, const int x, const int y, const bool force = false, const bool toSourceOnly = false); @@ -467,7 +468,7 @@ class Gui final /** * Holds the last mouse button pressed. */ - unsigned int mLastMousePressButton; + MouseButton::Type mLastMousePressButton; /** * Holds the last mouse press time stamp. @@ -495,7 +496,7 @@ class Gui final * was initiated. Used to be able to release a drag * when the same button is released. */ - int mLastMouseDragButton; + MouseButton::Type mLastMouseDragButton; /** * Holds a stack with all the widgets with the mouse. -- cgit v1.2.3-60-g2f50