Add option to disable all cheats by pressing X in the cheat panel

This commit is contained in:
Gericom
2026-03-07 14:51:58 +01:00
parent 4d9318b0b9
commit 12ebd482d4
3 changed files with 35 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
#define LIST_X 16
#define LIST_Y 36
#define LIST_WIDTH 224
#define LIST_HEIGHT /*124*/108
#define LIST_HEIGHT 108
CheatsBottomSheetView::CheatsBottomSheetView(std::unique_ptr<CheatsViewModel> viewModel,
const MaterialColorScheme* materialColorScheme, const IFontRepository* fontRepository,
@@ -214,6 +214,11 @@ bool CheatsBottomSheetView::HandleInput(const InputProvider& inputProvider, Focu
_viewModel->Close();
return true;
}
else if (inputProvider.Triggered(InputKey::X))
{
_viewModel->DisableAllCheats();
return true;
}
return false;
}