summaryrefslogtreecommitdiff
path: root/src/input/inputactionmap.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 22:18:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 22:18:14 +0300
commit2c1dc81db735d0da2cf25afd34b93c2f228ebb2d (patch)
treea806fcea53f9f983a4bd5285b144faed42d6dac0 /src/input/inputactionmap.h
parent9337f74e87550070fdd2d1bf506a7283719b5c2d (diff)
downloadmv-2c1dc81db735d0da2cf25afd34b93c2f228ebb2d.tar.gz
mv-2c1dc81db735d0da2cf25afd34b93c2f228ebb2d.tar.bz2
mv-2c1dc81db735d0da2cf25afd34b93c2f228ebb2d.tar.xz
mv-2c1dc81db735d0da2cf25afd34b93c2f228ebb2d.zip
Add chat command for moving camera.
New chat command: /movecamera x y Alias: /cameramove x y
Diffstat (limited to 'src/input/inputactionmap.h')
-rw-r--r--src/input/inputactionmap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index e9457058b..4b9d61047 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4234,6 +4234,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::INGAME,
"navigateto",
true},
+ {"keyCameraMove",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::moveCamera,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "movecamera|cameramove",
+ true},
};
#endif // INPUT_INPUTACTIONMAP_H