OpenXR - Hide options which are not relevant for VR

This commit is contained in:
Lubos committed 2022-07-07 18:20:12 +02:00
1 parent 99a4a06286
commit 8ba87bf9aa
3 files changed
+13 -3

No files matched your search

+5 -1
View File
@@ -585,7 +585,9 @@ void GameSettingsScreen::CreateViews() {
static const char *bufFilters[] = { "Linear", "Nearest", };
graphicsSettings->Add(new PopupMultiChoice(&g_Config.iBufFilter, gr->T("Screen Scaling Filter"), bufFilters, 1, ARRAY_SIZE(bufFilters), gr->GetName(), screenManager()));
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
#ifdef OPENXR
bool showCardboardSettings = false;
#elif PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
bool showCardboardSettings = true;
#else
// If you enabled it through the ini, you can see this. Useful for testing.
@@ -689,6 +691,7 @@ void GameSettingsScreen::CreateViews() {
MicChoice->OnChoice.Handle(this, &GameSettingsScreen::OnMicDeviceChange);
}
#ifndef OPENXR
// Control
LinearLayout *controlsSettings = AddTab("GameSettingsControls", ms->T("Controls"));
@@ -784,6 +787,7 @@ void GameSettingsScreen::CreateViews() {
controlsSettings->Add(new CheckBox(&g_Config.bMouseConfine, co->T("Confine Mouse", "Trap mouse within window/display area")))->SetEnabledPtr(&g_Config.bMouseControl);
controlsSettings->Add(new PopupSliderChoiceFloat(&g_Config.fMouseSensitivity, 0.01f, 1.0f, co->T("Mouse sensitivity"), 0.01f, screenManager(), "x"))->SetEnabledPtr(&g_Config.bMouseControl);
controlsSettings->Add(new PopupSliderChoiceFloat(&g_Config.fMouseSmoothing, 0.0f, 0.95f, co->T("Mouse smoothing"), 0.05f, screenManager(), "x"))->SetEnabledPtr(&g_Config.bMouseControl);
#endif
#endif
LinearLayout *networkingSettings = AddTab("GameSettingsNetworking", ms->T("Networking"));