mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add a "reset to default" for all float-slider settings
Unfortunately, the default values from the configs are not exposed outside Config.cpp, so there's duplication. Need to figure out how to do fix that, but it's out-of-scope for this PR.
This commit is contained in:
1 parent
35e7dabd7b
commit
4e0babc950
7 files changed
+62
-45
No files matched your search
@@ -122,7 +122,7 @@ void TiltAnalogSettingsScreen::CreateViews() {
|
||||
|
||||
settings->Add(new ItemHeader(co->T("Sensitivity")));
|
||||
if (g_Config.iTiltInputType == 1) {
|
||||
settings->Add(new PopupSliderChoiceFloat(&g_Config.fTiltAnalogDeadzoneRadius, 0.0f, 0.8f, co->T("Deadzone radius"), 0.01f, screenManager(), "/ 1.0"))->SetEnabledFunc(enabledFunc);
|
||||
settings->Add(new PopupSliderChoiceFloat(&g_Config.fTiltAnalogDeadzoneRadius, 0.0f, 0.8f, 0.0f, co->T("Deadzone radius"), 0.01f, screenManager(), "/ 1.0"))->SetEnabledFunc(enabledFunc);
|
||||
}
|
||||
settings->Add(new PopupSliderChoice(&g_Config.iTiltSensitivityX, 0, 100, co->T("Tilt Sensitivity along X axis"), screenManager(), "%"))->SetEnabledFunc(enabledFunc);
|
||||
settings->Add(new PopupSliderChoice(&g_Config.iTiltSensitivityY, 0, 100, co->T("Tilt Sensitivity along Y axis"), screenManager(), "%"))->SetEnabledFunc(enabledFunc);
|
||||
|
||||
Reference in new issue
Block a user