From ec51be4fd71babf30a73332bc4b73edb994ee462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 00:41:05 +0300 Subject: Convert KeyEvent enum into strong typed enum. --- src/enums/events/keyeventtype.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/enums/events') 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 -- cgit v1.2.3-70-g09d2