From d9dc86b8dce433947c81ba87ad0bad83d4bc96f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Aug 2014 22:06:47 +0300 Subject: Move chat command /erase into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 258c3c3e7..3fc39aaf3 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -357,6 +357,7 @@ namespace InputAction NEUTRAL, BLACKLIST, ENEMY, + ERASE, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index e3d17710c..ebadff15d 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2982,6 +2982,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "enemy", + true}, + {"keyErase", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::chatErase, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "erase", true} }; -- cgit v1.2.3-70-g09d2