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/enums/events/mousebutton.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'src/enums') diff --git a/src/enums/events/mousebutton.h b/src/enums/events/mousebutton.h index 51fddef5b..d3bfd20ed 100644 --- a/src/enums/events/mousebutton.h +++ b/src/enums/events/mousebutton.h @@ -64,19 +64,16 @@ #ifndef ENUMS_EVENTS_MOUSEBUTTON_H #define ENUMS_EVENTS_MOUSEBUTTON_H -namespace MouseButton +#include "enums/simpletypes/enumdefines.h" + +enumStart(MouseButton) { - /** - * Mouse button types. - */ - enum Type - { - WHEEL = -1, - EMPTY = 0, - LEFT, - RIGHT, - MIDDLE - }; -} // namespace MouseButton + WHEEL = -1, + EMPTY = 0, + LEFT, + RIGHT, + MIDDLE +} +enumEnd(MouseButton); #endif // ENUMS_EVENTS_MOUSEBUTTON_H -- cgit v1.2.3-70-g09d2