summaryrefslogtreecommitdiff
path: root/src/enums/events
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:41:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:41:05 +0300
commitec51be4fd71babf30a73332bc4b73edb994ee462 (patch)
tree0199da5c75066083b4287204d3532f69420764eb /src/enums/events
parent7969f0590204ac48d74e98c3211bca27693bac44 (diff)
downloadmanaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.gz
manaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.bz2
manaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.xz
manaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.zip
Convert KeyEvent enum into strong typed enum.
Diffstat (limited to 'src/enums/events')
-rw-r--r--src/enums/events/keyeventtype.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/enums/events/keyeventtype.h b/src/enums/events/keyeventtype.h
index 7c96b749a..b04ddab7e 100644
--- a/src/enums/events/keyeventtype.h
+++ b/src/enums/events/keyeventtype.h
@@ -64,16 +64,13 @@
#ifndef ENUMS_EVENTS_KEYEVENTTYPE_H
#define ENUMS_EVENTS_KEYEVENTTYPE_H
-namespace KeyEventType
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(KeyEventType)
{
- /**
- * Key event types.
- */
- enum Type
- {
- PRESSED = 0,
- RELEASED
- };
-} // namespace KeyEventType
+ PRESSED = 0,
+ RELEASED
+}
+enumEnd(KeyEventType);
#endif // ENUMS_EVENTS_KEYEVENTTYPE_H