diff --git a/README.md b/README.md index 2434ca4f..5d0d49bb 100644 --- a/README.md +++ b/README.md @@ -38,15 +38,19 @@ WiVRn support a wide range of VR devices: ## PC Server/Dashboard -We recommend using the flatpak package from Flathub: - -[![Flathub](https://flathub.org/api/badge)](https://flathub.org/apps/io.github.wivrn.wivrn) - -Alternatively, packages are available from: +We recommend using native packages if available for your distribution: - [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard) - [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/) - [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn) +- [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn) +For OpenVR and Steam compatibility, you also need a [compatibility library](#openvr-and-steam-games) such as xrizer or OpenComposite. + +A flatpak is available on Flathub for all distributions: + +[![Flathub](https://flathub.org/api/badge)](https://flathub.org/apps/io.github.wivrn.wivrn) + +Note that due to flatpak sandboxing some features may not be available such as Lighthouse tracked devices. ## Headset Client/App @@ -97,7 +101,7 @@ The flatpak includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [x If using Wine/Proton, it will probe for OpenVR at startup, This means even for OpenXR applications, OpenComposite or xrizer is required. -When you start the server through flatpak, it automatically configures the current OpenVR to use xrizer. +When a headset connects, wivrn-server sets the OpenVR runtime to xrizer unless manually configured differently. ### Steam Flatpak If you're using the Steam Flatpak, you'll need to grant read only access to the following paths: diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index 018cc711..9b1f0863 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -525,58 +525,58 @@ void scenes::stream::gui_settings(float predicted_display_period) } } ImGui::Unindent(); + } - bool send_packet = false; - bool save_config = false; - ImGui::Text("%s", _S("Foveation center override")); - ImGui::Indent(); + bool send_packet = false; + bool save_config = false; + ImGui::Text("%s", _S("Foveation center override")); + ImGui::Indent(); + { + if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable)) { - if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable)) - { - send_packet = true; - save_config = true; - } - imgui_ctx->vibrate_on_hover(); - - ImGui::BeginDisabled(!override_foveation_enable); - ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str()); - ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str()); - if (ImGui::Button(_S("Default"))) - { - override_foveation_distance = configuration{}.override_foveation_distance; - override_foveation_pitch = configuration{}.override_foveation_pitch; - send_packet = true; - save_config = true; - } - imgui_ctx->vibrate_on_hover(); - - ImGui::SameLine(); - - if (ImGui::Button(_S("Change"))) - gui_status = gui_status::foveation_settings; - imgui_ctx->vibrate_on_hover(); - - ImGui::EndDisabled(); + send_packet = true; + save_config = true; } - ImGui::Unindent(); + imgui_ctx->vibrate_on_hover(); - if (send_packet) + ImGui::BeginDisabled(!override_foveation_enable); + ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str()); + ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str()); + if (ImGui::Button(_S("Default"))) { - network_session->send_control(from_headset::override_foveation_center{ - .enabled = override_foveation_enable, - .pitch = override_foveation_pitch, - .distance = override_foveation_distance, - }); + override_foveation_distance = configuration{}.override_foveation_distance; + override_foveation_pitch = configuration{}.override_foveation_pitch; + send_packet = true; + save_config = true; } + imgui_ctx->vibrate_on_hover(); - if (save_config) - { - auto & config = application::get_config(); - config.override_foveation_enable = override_foveation_enable; - config.override_foveation_pitch = override_foveation_pitch; - config.override_foveation_distance = override_foveation_distance; - config.save(); - } + ImGui::SameLine(); + + if (ImGui::Button(_S("Change"))) + gui_status = gui_status::foveation_settings; + imgui_ctx->vibrate_on_hover(); + + ImGui::EndDisabled(); + } + ImGui::Unindent(); + + if (send_packet) + { + network_session->send_control(from_headset::override_foveation_center{ + .enabled = override_foveation_enable, + .pitch = override_foveation_pitch, + .distance = override_foveation_distance, + }); + } + + if (save_config) + { + auto & config = application::get_config(); + config.override_foveation_enable = override_foveation_enable; + config.override_foveation_pitch = override_foveation_pitch; + config.override_foveation_distance = override_foveation_distance; + config.save(); } ImGui::PopStyleVar(); }