From bd7821e9648186abf1fa06c6ded9e61755b1d369 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Nov 2013 01:23:49 +0300 Subject: add action "move forward" default key unassigned. --- src/input/keyboarddata.h | 7 +++++++ src/input/keydata.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/input') diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h index e9703eac7..ed8aefe17 100644 --- a/src/input/keyboarddata.h +++ b/src/input/keyboarddata.h @@ -62,6 +62,13 @@ 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, diff --git a/src/input/keydata.h b/src/input/keydata.h index bb5d27fd1..562c15208 100644 --- a/src/input/keydata.h +++ b/src/input/keydata.h @@ -71,6 +71,7 @@ namespace Input KEY_MOVE_DOWN, KEY_MOVE_LEFT, KEY_MOVE_RIGHT, + KEY_MOVE_FORWARD, KEY_ATTACK, KEY_TARGET_ATTACK, KEY_MOVE_TO_TARGET, -- cgit v1.2.3-70-g09d2