From bf8539999dd93035ab3651e614f62fd972b5aa62 Mon Sep 17 00:00:00 2001 From: iChris4 Date: Tue, 8 Sep 2026 15:53:35 +0200 Subject: [PATCH] Moved VR Settings from "Graphics" Menu --- runtime/src/settings_overlay.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/runtime/src/settings_overlay.cpp b/runtime/src/settings_overlay.cpp index 3cc9097..5dc40ae 100644 --- a/runtime/src/settings_overlay.cpp +++ b/runtime/src/settings_overlay.cpp @@ -816,6 +816,12 @@ void DrawGraphicsSettings() { } ImGui::Separator(); ImGui::Text("Graphics API: %s", GraphicsApiDisplayName()); +} + +// The VR settings live in their own top-bar menu: they are a self-contained +// group, and keeping them out of Graphics stops that menu from running off the +// bottom of the screen. +void DrawVrSettings() { if (ImGui::Checkbox("Enable OpenXR VR", &g_vrEnabled)) { RuntimeConfigFile::SetVrEnabled(g_vrEnabled); } @@ -1079,6 +1085,11 @@ void DrawTopBar() { ImGui::EndMenu(); } + if (ImGui::BeginMenu("VR")) { + DrawVrSettings(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Controller settings")) { DrawControllerSettings(); ImGui::EndMenu();