summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 22:29:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 22:29:29 +0300
commit3a091245572872f5cda79eab92eb392f92c02b39 (patch)
tree512e1b815194d865f67714542ab076411e084f32 /src/input
parent10029599ee4cb4c26531303ab0e07cedc856f1ad (diff)
downloadmv-3a091245572872f5cda79eab92eb392f92c02b39.tar.gz
mv-3a091245572872f5cda79eab92eb392f92c02b39.tar.bz2
mv-3a091245572872f5cda79eab92eb392f92c02b39.tar.xz
mv-3a091245572872f5cda79eab92eb392f92c02b39.zip
Move chat command /move 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 9385ae765..aeb2164e6 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -367,6 +367,7 @@ namespace InputAction
TOGGLE,
PRESENT,
PRINT_ALL,
+ MOVE,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index b55887c65..05bb49616 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3072,7 +3072,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"all",
- false}
+ false},
+ {"keyMove",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::move,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "move",
+ true},
};
#endif // INPUT_INPUTACTIONMAP_H