diff options
Diffstat (limited to 'backends/platform/sdl/events.cpp')
-rw-r--r-- | backends/platform/sdl/events.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp index 3b2baf6aa0..f7242393b1 100644 --- a/backends/platform/sdl/events.cpp +++ b/backends/platform/sdl/events.cpp @@ -532,7 +532,7 @@ void OSystem_SDL::setupKeymapper() { keySet->addHardwareKey(new HardwareKey( 'f', KeyState(KEYCODE_f), "f" )); mapper->registerHardwareKeySet(keySet); - Keymap *global = new Keymap(); + Keymap *global = new Keymap("global"); Action *act; Event evt; @@ -551,6 +551,7 @@ void OSystem_SDL::setupKeymapper() { #undef ADD_KEYDOWN_EVENT - mapper->setDefaultGlobalKeymap(global); + mapper->addGlobalKeymap(global); + mapper->pushKeymap("global"); } |