aboutsummaryrefslogtreecommitdiff
path: root/backends/keymapper
diff options
context:
space:
mode:
authorTarek Soliman2011-12-12 20:15:08 -0600
committerTarek Soliman2011-12-12 20:18:40 -0600
commitfeb04d2164766378d40304a843ab0374b87320a1 (patch)
tree87bd4e9c00961e07273da21837c78e8f1ab1d540 /backends/keymapper
parent22d3118aff380aa301443275953fb1af7624d136 (diff)
downloadscummvm-rg350-feb04d2164766378d40304a843ab0374b87320a1.tar.gz
scummvm-rg350-feb04d2164766378d40304a843ab0374b87320a1.tar.bz2
scummvm-rg350-feb04d2164766378d40304a843ab0374b87320a1.zip
KEYMAPPER: Add Common::KeyActionEntry for making simple keymap tables
Diffstat (limited to 'backends/keymapper')
-rw-r--r--backends/keymapper/action.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/keymapper/action.h b/backends/keymapper/action.h
index b15b3aaaad..e5bf6d51dd 100644
--- a/backends/keymapper/action.h
+++ b/backends/keymapper/action.h
@@ -40,6 +40,12 @@ class Keymap;
#define ACTION_ID_SIZE (4)
+struct KeyActionEntry {
+ const KeyState ks;
+ const char *id;
+ const char *description;
+};
+
struct Action {
/** unique id used for saving/loading to config */
char id[ACTION_ID_SIZE];