aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/engine.cpp')
-rw-r--r--engines/engine.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index e4e4630841..4811ba6917 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -45,6 +45,8 @@
#include "common/textconsole.h"
#include "common/translation.h"
+#include "backends/keymapper/keymapper.h"
+
#include "gui/debugger.h"
#include "gui/dialog.h"
#include "gui/message.h"
@@ -499,6 +501,12 @@ void Engine::syncSoundSettings() {
_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, soundVolumeSpeech);
}
+void Engine::deinitKeymap() {
+#ifdef ENABLE_KEYMAPPER
+ _eventMan->getKeymapper()->cleanupGameKeymaps();
+#endif
+}
+
void Engine::flipMute() {
// Mute will be set to true by default here. This has two reasons:
// - if the game already has an "mute" config entry, it will be overwritten anyway.