mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
softgpu: Allow configuring Google Cardboard.
This is also relevant where softgpu is forced, i.e. Darkstalkers.
This commit is contained in:
parent
a03e368566
commit
23218a58e3
1 changed files with 5 additions and 6 deletions
|
@ -461,14 +461,13 @@ void GameSettingsScreen::CreateViews() {
|
||||||
|
|
||||||
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
|
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
|
||||||
graphicsSettings->Add(new ItemHeader(gr->T("Cardboard VR Settings", "Cardboard VR Settings")));
|
graphicsSettings->Add(new ItemHeader(gr->T("Cardboard VR Settings", "Cardboard VR Settings")));
|
||||||
CheckBox *cardboardMode = graphicsSettings->Add(new CheckBox(&g_Config.bEnableCardboardVR, gr->T("Enable Cardboard VR", "Enable Cardboard VR")));
|
graphicsSettings->Add(new CheckBox(&g_Config.bEnableCardboardVR, gr->T("Enable Cardboard VR", "Enable Cardboard VR")));
|
||||||
cardboardMode->SetDisabledPtr(&g_Config.bSoftwareRendering);
|
PopupSliderChoice *cardboardScreenSize = graphicsSettings->Add(new PopupSliderChoice(&g_Config.iCardboardScreenSize, 30, 100, gr->T("Cardboard Screen Size", "Screen Size (in % of the viewport)"), 1, screenManager(), gr->T("% of viewport")));
|
||||||
PopupSliderChoice * cardboardScreenSize = graphicsSettings->Add(new PopupSliderChoice(&g_Config.iCardboardScreenSize, 30, 100, gr->T("Cardboard Screen Size", "Screen Size (in % of the viewport)"), 1, screenManager(), gr->T("% of viewport")));
|
cardboardScreenSize->SetEnabledPtr(&g_Config.bEnableCardboardVR);
|
||||||
cardboardScreenSize->SetDisabledPtr(&g_Config.bSoftwareRendering);
|
|
||||||
PopupSliderChoice *cardboardXShift = graphicsSettings->Add(new PopupSliderChoice(&g_Config.iCardboardXShift, -100, 100, gr->T("Cardboard Screen X Shift", "X Shift (in % of the void)"), 1, screenManager(), gr->T("% of the void")));
|
PopupSliderChoice *cardboardXShift = graphicsSettings->Add(new PopupSliderChoice(&g_Config.iCardboardXShift, -100, 100, gr->T("Cardboard Screen X Shift", "X Shift (in % of the void)"), 1, screenManager(), gr->T("% of the void")));
|
||||||
cardboardXShift->SetDisabledPtr(&g_Config.bSoftwareRendering);
|
cardboardXShift->SetEnabledPtr(&g_Config.bEnableCardboardVR);
|
||||||
PopupSliderChoice *cardboardYShift = graphicsSettings->Add(new PopupSliderChoice(&g_Config.iCardboardYShift, -100, 100, gr->T("Cardboard Screen Y Shift", "Y Shift (in % of the void)"), 1, screenManager(), gr->T("% of the void")));
|
PopupSliderChoice *cardboardYShift = graphicsSettings->Add(new PopupSliderChoice(&g_Config.iCardboardYShift, -100, 100, gr->T("Cardboard Screen Y Shift", "Y Shift (in % of the void)"), 1, screenManager(), gr->T("% of the void")));
|
||||||
cardboardYShift->SetDisabledPtr(&g_Config.bSoftwareRendering);
|
cardboardYShift->SetEnabledPtr(&g_Config.bEnableCardboardVR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::vector<std::string> cameraList = Camera::getDeviceList();
|
std::vector<std::string> cameraList = Camera::getDeviceList();
|
||||||
|
|
Loading…
Add table
Reference in a new issue