summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/InputCommon.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-01-04 20:05:34 +0000
committernakeee <nakeee@gmail.com>2009-01-04 20:05:34 +0000
commit96d6fc6e85f10fb5a5ac0a3f8d5c34c53669b4ec (patch)
treeee60b78268c690e50c8bbf59055f146f879f58e3 /Source/Core/InputCommon/Src/InputCommon.cpp
parent90560511c9f5970a66ee1a3c2f1eb0d0d14b357b (diff)
More files
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1767 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/InputCommon.cpp')
-rw-r--r--Source/Core/InputCommon/Src/InputCommon.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/Src/InputCommon.cpp b/Source/Core/InputCommon/Src/InputCommon.cpp
new file mode 100644
index 0000000000..f34ccbb588
--- /dev/null
+++ b/Source/Core/InputCommon/Src/InputCommon.cpp
@@ -0,0 +1,17 @@
+#include "EventHandler.h"
+
+EventHandler *eventHandler = NULL;
+
+namespace InputCommon {
+ void Init() {
+#if defined GLTEST && GLTEST
+ // init the event handler
+ eventHandler = new EventHandler();
+#endif
+ }
+
+ void Shutdown() {
+ if (eventHandler)
+ delete eventHandler;
+ }
+}