summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 21:48:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 21:48:59 +0300
commit475aa157df7400ce40ef9a5cc4cb441291d45df9 (patch)
tree6990e349c853115820caaf1f34e96c35a5186c8d /src/input
parent2efe6bad2044f12d842466e149f512aba9b7fc86 (diff)
downloadmv-475aa157df7400ce40ef9a5cc4cb441291d45df9.tar.gz
mv-475aa157df7400ce40ef9a5cc4cb441291d45df9.tar.bz2
mv-475aa157df7400ce40ef9a5cc4cb441291d45df9.tar.xz
mv-475aa157df7400ce40ef9a5cc4cb441291d45df9.zip
Move chat command /whisper into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h11
2 files changed, 11 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 8d4051fc0..852529934 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -347,6 +347,7 @@ namespace InputAction
IPC_TOGGLE,
WHERE,
WHO,
+ WHISPER,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index b7a7fcff7..165457b27 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -2892,7 +2892,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"who",
- false}
+ false},
+ {"keyWhisper",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::msg,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "w|whisper|msg",
+ true}
};
#endif // INPUT_INPUTACTIONMAP_H