summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keyboardconfig.cpp1
-rw-r--r--src/keyboardconfig.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 047f576a..aea96942 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -36,6 +36,7 @@ struct KeyData
const char *caption;
};
+// keyData must be in same order as enum keyAction.
static KeyData const keyData[KeyboardConfig::KEY_TOTAL] = {
{"keyMoveUp", SDLK_UP, "Move Up"},
{"keyMoveDown", SDLK_DOWN, "Move Down"},
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h
index 1a7d84b9..1f186ce1 100644
--- a/src/keyboardconfig.h
+++ b/src/keyboardconfig.h
@@ -154,8 +154,8 @@ class KeyboardConfig
KEY_TARGET,
KEY_TARGET_CLOSEST,
KEY_PICKUP,
- KEY_SIT,
KEY_HIDE_WINDOWS,
+ KEY_SIT,
KEY_TOTAL
};