summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 20:53:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 20:53:04 +0300
commit67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d (patch)
tree912d2741d258a32f966d5cbb984a5865a5492783 /src/input
parenta4077c474c370275442982965bb174b2e1e59422 (diff)
downloadmv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.tar.gz
mv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.tar.bz2
mv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.tar.xz
mv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.zip
Move chat command /dirs into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
-rw-r--r--src/input/pages/other.cpp6
3 files changed, 16 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 67ed7a8a0..e57deb0bc 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -385,6 +385,7 @@ namespace InputAction
CACHE_INFO,
DISCONNECT,
UNDRESS,
+ DIRS,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 7fdda0480..10dbcf90f 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3234,6 +3234,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"undress",
+ true},
+ {"keyDirs",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::dirs,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "dirs",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 5d9aca31e..f730db629 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -268,6 +268,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Print configured directories in chat"),
+ InputAction::DIRS,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""