summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-24 22:06:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-24 22:06:47 +0300
commitd9dc86b8dce433947c81ba87ad0bad83d4bc96f6 (patch)
tree02afde544303ab88ab5a1f726d7c3a6f5794e341 /src/input
parent4805bee18392b56f39be68b0d6a0384cbda0f846 (diff)
downloadmanaplus-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.tar.gz
manaplus-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.tar.bz2
manaplus-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.tar.xz
manaplus-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.zip
Move chat command /erase into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
2 files changed, 10 insertions, 0 deletions
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}
};