Add a way to put the "ExtraButtons" in a popup menu, use on control mapping screen

This commit is contained in:
Henrik Rydgård
2025-11-15 20:44:14 +01:00
parent 09d195c9ef
commit 8b52cf67af
16 changed files with 71 additions and 19 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ static const BindingCategory cats[] = {
{}, // sentinel
};
void ControlMappingScreen::CreateExtraButtons(UI::LinearLayout *verticalLayout, int margins) {
void ControlMappingScreen::CreateExtraButtons(UI::ViewGroup *verticalLayout, int margins) {
using namespace UI;
auto km = GetI18NCategory(I18NCat::KEYMAPPING);
verticalLayout->Add(new Choice(km->T("Clear All")))->OnClick.Add([](UI::EventParams &) {