mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Add option to disable all cheats by pressing X in the cheat panel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user