diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:41:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:41:05 +0300 |
commit | ec51be4fd71babf30a73332bc4b73edb994ee462 (patch) | |
tree | 0199da5c75066083b4287204d3532f69420764eb /src/enums | |
parent | 7969f0590204ac48d74e98c3211bca27693bac44 (diff) | |
download | mv-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.gz mv-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.bz2 mv-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.xz mv-ec51be4fd71babf30a73332bc4b73edb994ee462.zip |
Convert KeyEvent enum into strong typed enum.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/events/keyeventtype.h | 17 |
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 |