summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 13:39:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 13:39:28 +0300
commit0ae262d137e24c44064f59102ff6b72b19c60b71 (patch)
treebc03b97a2c0fd007f6076daf18ce6e56c5630a49 /src/input
parenta7c2351c708c38bf020e8e1250b6a78cb2b6f89e (diff)
downloadmanaverse-0ae262d137e24c44064f59102ff6b72b19c60b71.tar.gz
manaverse-0ae262d137e24c44064f59102ff6b72b19c60b71.tar.bz2
manaverse-0ae262d137e24c44064f59102ff6b72b19c60b71.tar.xz
manaverse-0ae262d137e24c44064f59102ff6b72b19c60b71.zip
Move chat command /toggle 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 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