aboutsummaryrefslogtreecommitdiff
path: root/backends/keymapper/keymapper.h
diff options
context:
space:
mode:
authorTarek Soliman2011-10-21 22:54:33 -0500
committerTarek Soliman2011-10-27 10:46:22 -0500
commita5082ffa5d12483f2e65fe653509989b1314164c (patch)
tree4520e7b2893856274100b23187f105499ab238f6 /backends/keymapper/keymapper.h
parentac85d134b31f770f27d085c0fe4c307e278c1875 (diff)
downloadscummvm-rg350-a5082ffa5d12483f2e65fe653509989b1314164c.tar.gz
scummvm-rg350-a5082ffa5d12483f2e65fe653509989b1314164c.tar.bz2
scummvm-rg350-a5082ffa5d12483f2e65fe653509989b1314164c.zip
KEYMAPPER: Skip GUI keymap when displaying active keymap in keymapper dialog
This fixes a problem where opening the keymapper dialog would cause the current game keymap to be displayed as the active keymap but then changing the keymap selection back to it would cause the GUI keymap to be displayed as the active one. The GUI keymap was indeed at the top of the stack but that's not the desired effect. Also move the pushing and popping of the keymap to Dialog::Open/Close Also constantify the GUI keymap name
Diffstat (limited to 'backends/keymapper/keymapper.h')
-rw-r--r--backends/keymapper/keymapper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/keymapper/keymapper.h b/backends/keymapper/keymapper.h
index 347b9e0ec0..4722de5774 100644
--- a/backends/keymapper/keymapper.h
+++ b/backends/keymapper/keymapper.h
@@ -36,6 +36,8 @@
namespace Common {
+const char *const kGuiKeymapName = "gui";
+
class Keymapper : public Common::EventMapper, private Common::ArtificialEventSource {
public: