From 96d6fc6e85f10fb5a5ac0a3f8d5c34c53669b4ec Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 4 Jan 2009 20:05:34 +0000 Subject: [PATCH] More files git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1767 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/InputCommon.cpp | 17 +++++++++++++++++ Source/Core/InputCommon/Src/InputCommon.h | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 Source/Core/InputCommon/Src/InputCommon.cpp create mode 100644 Source/Core/InputCommon/Src/InputCommon.h 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; + } +} diff --git a/Source/Core/InputCommon/Src/InputCommon.h b/Source/Core/InputCommon/Src/InputCommon.h new file mode 100644 index 0000000000..6128e8cf5d --- /dev/null +++ b/Source/Core/InputCommon/Src/InputCommon.h @@ -0,0 +1,8 @@ +#include "EventHandler.h" + +extern EventHandler *eventHandler; + +namespace InputCommon { + void Init(); + void Shutdown(); +}