mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
1 parent
759d8498ca
commit
e172cc1060
3 files changed
+6
-8
No files matched your search
+3
-2
@@ -873,8 +873,9 @@ void TouchControlConfig::ResetLayout() {
|
||||
}
|
||||
|
||||
bool TouchControlConfig::ResetToDefault(std::string_view blockName) {
|
||||
// We do this traditionally for now.
|
||||
return false;
|
||||
static const TouchControlConfig defaults = TouchControlConfig();
|
||||
*this = defaults;
|
||||
return true;
|
||||
}
|
||||
|
||||
static const ConfigSetting touchControlSettings[] = {
|
||||
|
||||
@@ -587,10 +587,6 @@ void TouchControlLayoutScreen::onFinish(DialogResult reason) {
|
||||
g_Config.Save("TouchControlLayoutScreen::onFinish");
|
||||
}
|
||||
|
||||
void TouchControlLayoutScreen::OnVisibility(UI::EventParams &e) {
|
||||
screenManager()->push(new TouchControlVisibilityScreen(gamePath_));
|
||||
}
|
||||
|
||||
void TouchControlLayoutScreen::OnReset(UI::EventParams &e) {
|
||||
INFO_LOG(Log::G3D, "Resetting touch control layout to default.");
|
||||
|
||||
@@ -670,7 +666,9 @@ void TouchControlLayoutScreen::CreateViews() {
|
||||
gridSize->SetEnabledPtr(&g_Config.bTouchSnapToGrid);
|
||||
|
||||
leftColumn->Add(mode_);
|
||||
leftColumn->Add(new Choice(co->T("Customize")))->OnClick.Handle(this, &TouchControlLayoutScreen::OnVisibility);
|
||||
leftColumn->Add(new Choice(co->T("Customize")))->OnClick.Add([this](UI::EventParams &e) {
|
||||
screenManager()->push(new TouchControlVisibilityScreen(gamePath_));
|
||||
});
|
||||
leftColumn->Add(snap);
|
||||
leftColumn->Add(gridSize);
|
||||
leftColumn->Add(new Choice(di->T("Reset")))->OnClick.Handle(this, &TouchControlLayoutScreen::OnReset);
|
||||
|
||||
@@ -38,7 +38,6 @@ public:
|
||||
|
||||
protected:
|
||||
void OnReset(UI::EventParams &e);
|
||||
void OnVisibility(UI::EventParams &e);
|
||||
void OnMode(UI::EventParams &e);
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user