From d9fd0f7fad79d8f285fe399322e81c48b02fb0b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Nov 2013 20:21:44 +0300 Subject: better not add new input actions in middle because this broke already assigned values. --- src/input/keyboarddata.h | 16 ++++++++-------- src/input/keydata.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/input') diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h index ed8aefe17..42b8f9fc6 100644 --- a/src/input/keyboarddata.h +++ b/src/input/keyboarddata.h @@ -62,13 +62,6 @@ static const KeyData keyData[Input::KEY_TOTAL] = { &ActionManager::moveRight, Input::KEY_NO_VALUE, 50, COND_GAME}, - {"keyMoveForward", - INPUT_UNKNOWN, Input::KEY_NO_VALUE, - INPUT_UNKNOWN, Input::KEY_NO_VALUE, - Input::GRP_DEFAULT, - &ActionManager::moveForward, - Input::KEY_NO_VALUE, 50, - COND_GAME}, {"keyAttack", INPUT_KEYBOARD, SDLK_LCTRL, INPUT_UNKNOWN, Input::KEY_NO_VALUE, @@ -1974,7 +1967,14 @@ static const KeyData keyData[Input::KEY_TOTAL] = { Input::GRP_CHAT, nullptr, Input::KEY_NO_VALUE, 50, - COND_DEFAULT | COND_INGAME} + COND_DEFAULT | COND_INGAME}, + {"keyMoveForward", + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_DEFAULT, + &ActionManager::moveForward, + Input::KEY_NO_VALUE, 50, + COND_GAME} }; #endif // INPUT_KEYBOARDDATA_H diff --git a/src/input/keydata.h b/src/input/keydata.h index 562c15208..aea8c9244 100644 --- a/src/input/keydata.h +++ b/src/input/keydata.h @@ -71,7 +71,6 @@ namespace Input KEY_MOVE_DOWN, KEY_MOVE_LEFT, KEY_MOVE_RIGHT, - KEY_MOVE_FORWARD, KEY_ATTACK, KEY_TARGET_ATTACK, KEY_MOVE_TO_TARGET, @@ -342,6 +341,7 @@ namespace Input KEY_SHOW_KEYBOARD, KEY_SHOW_WINDOWS, KEY_CHAT_MOD, + KEY_MOVE_FORWARD, KEY_TOTAL }; } // namespace Input -- cgit v1.2.3-70-g09d2