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.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 aa69f4a19..87cb80914 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -398,6 +398,7 @@ namespace InputAction
SERVER_UNIGNORE_ALL,
SET_DROP,
ERROR,
+ DUMP_GRAPHICS,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 4b9150aa8..7d80d63fe 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3351,6 +3351,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"error",
+ false},
+ {"keyDumpg",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::dumpGraphics,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "dumpg",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 8bae75449..658c368f2 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -292,6 +292,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Dump graphics info into chat"),
+ InputAction::DUMP_GRAPHICS,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""