summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 21:59:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 21:59:43 +0300
commit1a652f220d1c74333cd2f54953dbaf41907314b6 (patch)
treefdaf09d8cb84ca036bdf73c47b0de5165d9e773d /src/input
parent475aa157df7400ce40ef9a5cc4cb441291d45df9 (diff)
downloadmanaverse-1a652f220d1c74333cd2f54953dbaf41907314b6.tar.gz
manaverse-1a652f220d1c74333cd2f54953dbaf41907314b6.tar.bz2
manaverse-1a652f220d1c74333cd2f54953dbaf41907314b6.tar.xz
manaverse-1a652f220d1c74333cd2f54953dbaf41907314b6.zip
Move chat command /query 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 852529934..15af94ec7 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -348,6 +348,7 @@ namespace InputAction
WHERE,
WHO,
WHISPER,
+ QUERY,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 165457b27..fc2b601b6 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -2901,6 +2901,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"w|whisper|msg",
+ true},
+ {"keyQuery",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::query,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "q|query",
true}
};