summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h11
-rw-r--r--src/input/pages/other.cpp6
3 files changed, 17 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index ec410f8f0..028b384bb 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -388,6 +388,7 @@ namespace InputAction
DIRS,
INFO,
WAIT,
+ UPTIME,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 7a7b148cd..ce06d13fe 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3261,7 +3261,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"wait",
- true}
+ true},
+ {"keyUptime",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::uptime,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "uptime",
+ false},
};
#endif // INPUT_INPUTACTIONMAP_H
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index f730db629..4931c1216 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -274,6 +274,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Print client uptime in chat"),
+ InputAction::UPTIME,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""