From 3a091245572872f5cda79eab92eb392f92c02b39 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 22:29:29 +0300 Subject: Move chat command /move into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 9385ae765..aeb2164e6 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -367,6 +367,7 @@ namespace InputAction TOGGLE, PRESENT, PRINT_ALL, + MOVE, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index b55887c65..05bb49616 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3072,7 +3072,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "all", - false} + false}, + {"keyMove", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::move, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "move", + true}, }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-60-g2f50