aboutsummaryrefslogtreecommitdiff
path: root/backends/keymapper
diff options
context:
space:
mode:
authorTarek Soliman2012-02-09 01:26:29 -0600
committerTarek Soliman2012-02-12 13:28:13 -0600
commit705761011d24f08eb56add90f6dfa605b36ac8ee (patch)
tree30697dbbf1710e6e0b343e03f31c094fa4c0436d /backends/keymapper
parente52f75eaa40b6a8f6f0db3a14a7dabf2e54506d3 (diff)
downloadscummvm-rg350-705761011d24f08eb56add90f6dfa605b36ac8ee.tar.gz
scummvm-rg350-705761011d24f08eb56add90f6dfa605b36ac8ee.tar.bz2
scummvm-rg350-705761011d24f08eb56add90f6dfa605b36ac8ee.zip
KEYMAPPER: Allow ports to define their own global keymap
Diffstat (limited to 'backends/keymapper')
-rw-r--r--backends/keymapper/keymapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/keymapper/keymapper.cpp b/backends/keymapper/keymapper.cpp
index 6d9ae21ef8..10cff9418b 100644
--- a/backends/keymapper/keymapper.cpp
+++ b/backends/keymapper/keymapper.cpp
@@ -145,6 +145,8 @@ Keymap *Keymapper::getKeymap(const String& name, bool *globalReturn) {
bool Keymapper::pushKeymap(const String& name, bool transparent) {
bool global;
+
+ assert(!name.empty());
Keymap *newMap = getKeymap(name, &global);
if (!newMap) {