diff options
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 9 | ||||
-rw-r--r-- | src/input/pages/other.cpp | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 73e3bb2c7..68c0483d1 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -359,6 +359,7 @@ namespace InputAction ENEMY, ERASE, CLEAN_GRAPHICS, + CLEAN_FONTS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 5b740c61f..f8d8c944f 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3000,6 +3000,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "cleangraphics", + false}, + {"keyCleanFonts", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::cleanFonts, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "cleanfonts", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index c12a24232..b36badd8e 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -220,6 +220,12 @@ SetupActionData setupActionDataOther[] = "", }, { + // TRANSLATORS: input action name + N_("Clean cached fonts"), + InputAction::CLEAN_FONTS, + "", + }, + { "", InputAction::NO_VALUE, "" |