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 3fc39aaf3..73e3bb2c7 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -358,6 +358,7 @@ namespace InputAction
BLACKLIST,
ENEMY,
ERASE,
+ CLEAN_GRAPHICS,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index ebadff15d..5b740c61f 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -2991,7 +2991,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"erase",
- true}
+ true},
+ {"keyCleanGraphics",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::cleanGraphics,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "cleangraphics",
+ false}
};
#endif // INPUT_INPUTACTIONMAP_H
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index e60b2addd..c12a24232 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -214,6 +214,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Clean cached graphics"),
+ InputAction::CLEAN_GRAPHICS,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""