summaryrefslogtreecommitdiffstats
path: root/src/common/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/event.cpp')
-rw-r--r--src/common/event.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/event.cpp b/src/common/event.cpp
index 6a5f4d3..87c8a5c 100644
--- a/src/common/event.cpp
+++ b/src/common/event.cpp
@@ -19,6 +19,16 @@
#include "common/event.h"
#include "common/iman.h"
+static EventType g_uniqueEventType = EVENT_USER;
+
+
+EventType GetUniqueEventType()
+{
+ int i = static_cast<int>(g_uniqueEventType+1);
+ g_uniqueEventType = static_cast<EventType>(i);
+ return g_uniqueEventType;
+}
+
CEventQueue::CEventQueue(CInstanceManager* iMan)