summaryrefslogtreecommitdiff
path: root/src/events/mouseevent.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-18 15:36:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-18 15:36:51 +0300
commit3d7cb45edeb4f75bad321d54d84fe2d13b487db9 (patch)
tree074f167b531f47c9df0e7ca68e8d2bbceee8284b /src/events/mouseevent.h
parent3042755e9a5ad302f4b5d6f5ed8a06a32fa3f32b (diff)
downloadmanaverse-3d7cb45edeb4f75bad321d54d84fe2d13b487db9.tar.gz
manaverse-3d7cb45edeb4f75bad321d54d84fe2d13b487db9.tar.bz2
manaverse-3d7cb45edeb4f75bad321d54d84fe2d13b487db9.tar.xz
manaverse-3d7cb45edeb4f75bad321d54d84fe2d13b487db9.zip
Move mouseeventtype into separate file.
Diffstat (limited to 'src/events/mouseevent.h')
-rw-r--r--src/events/mouseevent.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/events/mouseevent.h b/src/events/mouseevent.h
index 351684645..213582f47 100644
--- a/src/events/mouseevent.h
+++ b/src/events/mouseevent.h
@@ -66,6 +66,8 @@
#include "events/inputguievent.h"
+#include "events/mouseeventtype.h"
+
class Widget;
/**
@@ -89,7 +91,7 @@ class MouseEvent: public InputGuiEvent
* It's set to zero if another button is used.
*/
MouseEvent(Widget *const source,
- const unsigned int type,
+ MouseEventType::Type type,
const unsigned int button,
const int x,
const int y,
@@ -147,7 +149,7 @@ class MouseEvent: public InputGuiEvent
*
* @return The type of the event.
*/
- unsigned int getType() const A_WARN_UNUSED
+ MouseEventType::Type getType() const A_WARN_UNUSED
{ return mType; }
void setX(int n)
@@ -157,22 +159,6 @@ class MouseEvent: public InputGuiEvent
{ mY = n; }
/**
- * Mouse event types.
- */
- enum
- {
- MOVED = 0,
- PRESSED,
- RELEASED,
- WHEEL_MOVED_DOWN,
- WHEEL_MOVED_UP,
- CLICKED,
- ENTERED,
- EXITED,
- DRAGGED
- };
-
- /**
* Mouse button types.
*/
enum
@@ -187,7 +173,7 @@ class MouseEvent: public InputGuiEvent
/**
* Holds the type of the mouse event.
*/
- unsigned int mType;
+ MouseEventType::Type mType;
/**
* Holds the button of the mouse event.