mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-13 20:22:38 +00:00
GameSettingsScreen: Adjust the "Show Touch Pause Menu Button" enabling logic slightly.
We don't want it to be enabled in-game, but there's also no point enabling the option if the user isn't showing touch controls to begin with.
This commit is contained in:
parent
7a69a6a405
commit
8320cee1bc
@ -270,7 +270,11 @@ void GameSettingsScreen::CreateViews() {
|
||||
CheckBox *enablePauseBtn = controlsSettings->Add(new CheckBox(&g_Config.bShowTouchPause, c->T("Show Touch Pause Menu Button")));
|
||||
|
||||
// Don't allow the user to disable it once in-game, so they can't lock themselves out of the menu.
|
||||
enablePauseBtn->SetEnabled(!PSP_IsInited());
|
||||
if (!PSP_IsInited()) {
|
||||
enablePauseBtn->SetEnabledPtr(&g_Config.bShowTouchControls);
|
||||
} else {
|
||||
enablePauseBtn->SetEnabled(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
CheckBox *disableDiags = controlsSettings->Add(new CheckBox(&g_Config.bDisableDpadDiagonals, c->T("Disable D-Pad diagonals (4-way touch)")));
|
||||
|
Loading…
Reference in New Issue
Block a user