summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 4786e4402..17cb11ae6 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -44,12 +44,22 @@ EventsManager::EventsManager() :
{
}
+EventsManager::~EventsManager()
+{
+ CHECKLISTENERS
+}
+
void EventsManager::init()
{
mLogInput = config.getBoolValue("logInput");
config.addListener("logInput", this);
}
+void EventsManager::shutdown()
+{
+ config.removeListeners(this);
+}
+
bool EventsManager::handleCommonEvents(const SDL_Event &event)
{
if (mLogInput)