diff options
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r-- | src/eventsmanager.cpp | 10 |
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) |