From f29616d8d1309ee135afe2b2e7baf1d91d677a95 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 00:53:40 +0300 Subject: Convert MouseButton enum into strong typed enum. --- src/events/mouseevent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/events') diff --git a/src/events/mouseevent.h b/src/events/mouseevent.h index c4e5e14e4..1be008827 100644 --- a/src/events/mouseevent.h +++ b/src/events/mouseevent.h @@ -93,7 +93,7 @@ class MouseEvent: public InputGuiEvent */ MouseEvent(Widget *const source, const MouseEventType::Type type, - const MouseButton::Type button, + const MouseButtonT button, const int x, const int y, const int clickCount) : @@ -111,7 +111,7 @@ class MouseEvent: public InputGuiEvent * * @return The button of the mouse event. */ - MouseButton::Type getButton() const A_WARN_UNUSED + MouseButtonT getButton() const A_WARN_UNUSED { return mButton; } /** @@ -168,7 +168,7 @@ class MouseEvent: public InputGuiEvent /** * Holds the button of the mouse event. */ - MouseButton::Type mButton; + MouseButtonT mButton; /** * Holds the x-coordinate of the mouse event. -- cgit v1.2.3-70-g09d2