aboutsummaryrefslogtreecommitdiff
path: root/backends/common/keymap-manager.cpp
diff options
context:
space:
mode:
authorStephen Kennedy2008-07-21 00:11:25 +0000
committerStephen Kennedy2008-07-21 00:11:25 +0000
commit757ed1a0945334162d253f819deb6ddd1ee18037 (patch)
treeb3bac6e2eb26c99a0e71816547996777e1406ce3 /backends/common/keymap-manager.cpp
parent4c730401fea19d9fd32c2408315d3c3e788ff1fa (diff)
downloadscummvm-rg350-757ed1a0945334162d253f819deb6ddd1ee18037.tar.gz
scummvm-rg350-757ed1a0945334162d253f819deb6ddd1ee18037.tar.bz2
scummvm-rg350-757ed1a0945334162d253f819deb6ddd1ee18037.zip
Moved UserAction and HardwareKey classes into their own respective header files.
Added HardwareKeySet class to manage a devices set of hardware keys. Started implementing Keymapper class. svn-id: r33157
Diffstat (limited to 'backends/common/keymap-manager.cpp')
-rw-r--r--backends/common/keymap-manager.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/backends/common/keymap-manager.cpp b/backends/common/keymap-manager.cpp
index d52615faea..6f60018abe 100644
--- a/backends/common/keymap-manager.cpp
+++ b/backends/common/keymap-manager.cpp
@@ -1,15 +1,19 @@
#include "backends/common/keymap-manager.h"
-#define GLOBAL_ID "GLOBAL"
+#define GLOBAL_ID_STR "___GLOBAL"
namespace Common {
+KeymapManager::KeymapManager() {
+
+}
+
bool KeymapManager::registerSuperGlobalKeymap(const Keymap& map) {
- return registerKeymap(GLOBAL_ID, GLOBAL_ID, map);
+ return registerKeymap(GLOBAL_ID_STR, GLOBAL_ID_STR, map);
}
bool KeymapManager::registerGlobalKeymap(const String& name, const Keymap& map) {
- return registerKeymap(name, GLOBAL_ID, map);
+ return registerKeymap(name, GLOBAL_ID_STR, map);
}
bool KeymapManager::registerKeymap(const String& name, const String& domain, const Keymap& map) {
@@ -26,11 +30,11 @@ bool KeymapManager::registerKeymap(const String& name, const String& domain, con
}
bool KeymapManager::unregisterSuperGlobalKeymap() {
- return unregisterKeymap(GLOBAL_ID, GLOBAL_ID);
+ return unregisterKeymap(GLOBAL_ID_STR, GLOBAL_ID_STR);
}
bool KeymapManager::unregisterGlobalKeymap(const String& name) {
- return unregisterKeymap(name, GLOBAL_ID);
+ return unregisterKeymap(name, GLOBAL_ID_STR);
}
bool KeymapManager::unregisterKeymap(const String& name, const String& domain) {