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();