From 0ae262d137e24c44064f59102ff6b72b19c60b71 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 13:39:28 +0300 Subject: Move chat command /toggle 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 2eb05dac6..dacd2a2da 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -364,6 +364,7 @@ namespace InputAction CREATE_GUILD, PARTY, ME, + TOGGLE, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 368518afc..289490723 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3045,7 +3045,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "me", - true} + true}, + {"keyToggle", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::toggle, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "toggle", + false} }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-70-g09d2