Merge branch 'sync' into sneed
This commit is contained in:
@@ -9,7 +9,10 @@ body:
|
||||
attributes:
|
||||
label: Describe the bug
|
||||
description: A clear and concise description of what the bug is.
|
||||
placeholder: Please describe the bug here...
|
||||
placeholder: |
|
||||
Please describe the bug here...
|
||||
*** Do NOT use AI to generate a bug report ***
|
||||
Write down what is wrong, attach logs and screenshots when relevant.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -22,12 +25,6 @@ body:
|
||||
2. Click on '...'
|
||||
3. See error
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: Expected behavior
|
||||
description: A clear and concise description of what you expected to happen.
|
||||
placeholder: Please describe what you expected to happen.
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: WiVRn Version
|
||||
@@ -42,20 +39,6 @@ body:
|
||||
description: Describe how WiVRn and OpenComposite/xrizer were installed
|
||||
placeholder: flatpak --user, flatpak, AUR, Gentoo/Guru, built from sources...
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Server Config
|
||||
description: |
|
||||
Provide the content of `config.json` for the server.
|
||||
Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json`
|
||||
or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version
|
||||
placeholder: |
|
||||
{
|
||||
"encoders": [
|
||||
{"codec": "h264"}
|
||||
]
|
||||
}
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Server Logs
|
||||
@@ -64,18 +47,6 @@ body:
|
||||
Add the output of the wivrn-server here.
|
||||
If more than a few lines, prefer file attachment.
|
||||
|
||||
- type: dropdown
|
||||
id: gpu
|
||||
attributes:
|
||||
label: What GPU did the bug occur on?
|
||||
options:
|
||||
- NVIDIA
|
||||
- AMD
|
||||
- Intel
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Vulkan Info
|
||||
@@ -107,5 +78,5 @@ body:
|
||||
attributes:
|
||||
label: ADB Logs
|
||||
description: Provide the output of `adb logcat` command.
|
||||
render: plain
|
||||
render: text
|
||||
placeholder: Attach the output of adb logcat as a file.
|
||||
|
||||
@@ -25,16 +25,18 @@ jobs:
|
||||
ref: ${{ github.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
||||
# Gradle distribution and the Android plugin's dependencies.
|
||||
- uses: actions/cache@v5
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
key: gradle-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
restore-keys: gradle-android-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext npm
|
||||
sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext npm
|
||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.0/KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
sudo dpkg --install KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
npm install --global @gltf-transform/cli@4.1.1
|
||||
|
||||
+14
-19
@@ -30,7 +30,6 @@ jobs:
|
||||
# Perfetto SDK glue don't bitrot (WIVRN_TRACE_MONADO needs percetto, not packaged in CI)
|
||||
- preset: 'server-tracing'
|
||||
packages: libboost-all-dev libsystemd-dev
|
||||
perfetto: true
|
||||
- preset: 'server-no-systemd'
|
||||
packages: libboost-all-dev
|
||||
- preset: 'server-no-system-boost'
|
||||
@@ -42,7 +41,7 @@ jobs:
|
||||
- name: Apt dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.6.1
|
||||
with:
|
||||
packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
|
||||
packages: ccache libvulkan-dev glslang-tools spirv-tools libwayland-dev libxrandr-dev ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||
@@ -69,15 +68,8 @@ jobs:
|
||||
sudo dpkg --install KTX-Software-4.4.2-Linux-x86_64.deb
|
||||
npm install --global @gltf-transform/cli@4.1.1
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Reflect, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: Fetch Perfetto SDK
|
||||
if: ${{ matrix.config.perfetto }}
|
||||
if: ${{ matrix.config.preset == 'server-tracing' }}
|
||||
# The amalgamated SDK is two files; install them where server/CMakeLists.txt looks.
|
||||
env:
|
||||
PERFETTO_TAG: v51.0
|
||||
@@ -130,7 +122,8 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY == '' }}
|
||||
container:
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.9
|
||||
# Tag matches runtime-version in the manifest.
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
|
||||
options: --privileged
|
||||
|
||||
steps:
|
||||
@@ -192,13 +185,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- uses: actions/cache@v5
|
||||
with:
|
||||
key: cmake-android-${{matrix.buildtype}}
|
||||
@@ -210,9 +196,18 @@ jobs:
|
||||
${{github.workspace}}/cmake-fetch/*.tgz
|
||||
restore-keys: cmake-android-
|
||||
|
||||
# Gradle distribution and the Android plugin's dependencies.
|
||||
- uses: actions/cache@v5
|
||||
with:
|
||||
key: gradle-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
restore-keys: gradle-android-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext
|
||||
sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext
|
||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
|
||||
sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb
|
||||
npm install --global @gltf-transform/cli
|
||||
|
||||
@@ -8,15 +8,25 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Apt dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.6.1
|
||||
with:
|
||||
packages: gettext
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install gettext
|
||||
pip install polib PyGithub
|
||||
|
||||
- name: Check that .po files are up to date
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
if [[ "${{github.ref}}" == 'refs/heads/master' ]] ; then
|
||||
tools/check_po.py --manage-issues --github-repository "${{ github.repository }}" --github-token "${{ github.token }}"
|
||||
elif [[ "${{github.base_ref}}" != "" ]] ; then
|
||||
FILES=$(gh api repos/${{github.repository}}/pulls/${{github.event.pull_request.number}}/files | jq --raw-output '[.[].filename | select(. | startswith("locale/"))] | join(",")')
|
||||
echo "Locale files changed by pull request: ${FILES}"
|
||||
tools/check_po.py --fail-on "${FILES}"
|
||||
else
|
||||
tools/check_po.py
|
||||
fi
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
||||
<!-- Required for WiFi locking, see https://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock -->
|
||||
|
||||
+15
-22
@@ -35,7 +35,6 @@ option(WIVRN_USE_SYSTEM_FREETYPE "Use system FreeType" ON)
|
||||
option(WIVRN_USE_SYSTEM_BOOST "Use system Boost headers" ON)
|
||||
option(WIVRN_USE_SYSTEM_OPENXR "Use system OpenXR headers" ON)
|
||||
option(WIVRN_USE_SYSTEM_LIBKTX "Use system KTX-Software library" ON)
|
||||
option(WIVRN_USE_SYSTEMD "Use libsystemd" ON)
|
||||
option(WIVRN_COMPRESS_GLB "Compress textures in GLB files with gltf-transform" OFF)
|
||||
option(WIVRN_USE_ANDROID_VALIDATION_LAYER "Download the android version of the Vulkan validation layer" OFF)
|
||||
option(WIVRN_USE_ANDROID_BIN_LIBKTX "Download the prebuilt libktx for android" OFF)
|
||||
@@ -49,6 +48,7 @@ option(WIVRN_BUILD_TEST "Build test binaries" OFF)
|
||||
option(WIVRN_WERROR "Treat warnings as errors" OFF)
|
||||
option(WIVRN_OPTIMIZE_SHADERS "Run spirv-opt on compiled shaders" ON)
|
||||
option(WIVRN_DEBUG_SHADERS "Compile shaders with debug information" OFF)
|
||||
option(WIVRN_ADDRESS_SANITIZER "Use address sanitizer" OFF)
|
||||
|
||||
if(WIVRN_OPTIMIZE_SHADERS AND WIVRN_DEBUG_SHADERS)
|
||||
message(FATAL_ERROR "WIVRN_OPTIMIZE_SHADERS and WIVRN_DEBUG_SHADERS are incompatible")
|
||||
@@ -123,8 +123,8 @@ endif()
|
||||
|
||||
if (WIVRN_BUILD_SERVER)
|
||||
find_program(GDBUS_CODEGEN gdbus-codegen REQUIRED)
|
||||
if (Vulkan_VERSION VERSION_LESS "1.3.261")
|
||||
message(FATAL_ERROR "Vulkan version must be at least 1.3.261, found ${Vulkan_VERSION}")
|
||||
if (Vulkan_VERSION VERSION_LESS "1.4.304")
|
||||
message(FATAL_ERROR "Vulkan version must be at least 1.4.304, found ${Vulkan_VERSION}")
|
||||
endif()
|
||||
|
||||
if (NOT WIVRN_USE_NVENC AND NOT WIVRN_USE_VAAPI AND NOT WIVRN_USE_X264 AND NOT WIVRN_USE_VULKAN_ENCODE)
|
||||
@@ -136,20 +136,10 @@ if (WIVRN_BUILD_SERVER)
|
||||
pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm)
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_VULKAN_ENCODE)
|
||||
if (Vulkan_VERSION VERSION_LESS 1.3.283)
|
||||
message(FATAL_ERROR "Vulkan video encode requires 1.3.283, found ${Vulkan_VERSION}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_X264)
|
||||
pkg_check_modules(X264 REQUIRED IMPORTED_TARGET x264)
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_SYSTEMD)
|
||||
pkg_check_modules(SYSTEMD REQUIRED IMPORTED_TARGET libsystemd)
|
||||
endif()
|
||||
|
||||
if (WIVRN_USE_PIPEWIRE)
|
||||
pkg_check_modules(libpipewire REQUIRED IMPORTED_TARGET libpipewire-0.3)
|
||||
endif()
|
||||
@@ -259,17 +249,17 @@ set(KTX_VERSION_FULL "v${KTX_VERSION}")
|
||||
FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/${KTX_VERSION_FULL}.tar.gz
|
||||
URL_HASH SHA256=9412cb45045a503005acd47d98f9e8b47154634a50b4df21e17a1dfa8971d323
|
||||
)
|
||||
FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/archive/3da8bd34299965d3b0ab124df743fe3e076fa222.zip
|
||||
URL_HASH SHA256=e9b439a94aa6f09fcf12ed9c2cd784efe5e99e96242122aa683e690b29f7a59f)
|
||||
FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/releases/download/v1.0/implot-v1.0.tar.gz
|
||||
URL_HASH SHA256=20ca14d5a46f36a650746096c74eba8bea99c9432cd3c877343b96b17a6ae566)
|
||||
file(GLOB IMGUI_PATCHES CONFIGURE_DEPENDS patches/imgui/*)
|
||||
FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.92.5.tar.gz
|
||||
URL_HASH SHA256=0eb50fe9aeba1a51f96b5843c7f630a32ed2e9362d693c61b87e4fa870cf826d
|
||||
FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.92.9.tar.gz
|
||||
URL_HASH SHA256=af97ed649182c39314320514a672b82008ab462b9293fe23d37b30bfa5d05519
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${IMGUI_PATCHES}
|
||||
)
|
||||
FetchContent_Declare(uni-algo EXCLUDE_FROM_ALL SYSTEM URL https://github.com/uni-algo/uni-algo/archive/v1.2.0.tar.gz
|
||||
URL_HASH SHA256=f2a1539cd8635bc6088d05144a73ecfe7b4d74ee0361fabed6f87f9f19e74ca9)
|
||||
FetchContent_Declare(entt EXCLUDE_FROM_ALL SYSTEM URL https://github.com/skypjack/entt/archive/refs/tags/v3.16.0.tar.gz
|
||||
URL_HASH SHA256=7d7b4037b737992342049ffab14f22fa10243e01664f8c3a0657aa247ac52f71)
|
||||
FetchContent_Declare(entt EXCLUDE_FROM_ALL SYSTEM URL https://github.com/skypjack/entt/archive/refs/tags/v4.0.0.tar.gz
|
||||
URL_HASH SHA256=32a2ff2c72cb047dfd57306006ef238820b70da7c6ce4e7e8a507ac63365212e)
|
||||
FetchContent_Declare(curl EXCLUDE_FROM_ALL SYSTEM URL https://github.com/curl/curl/releases/download/curl-8_17_0/curl-8.17.0.tar.xz
|
||||
URL_HASH SHA256=955f6e729ad6b3566260e8fef68620e76ba3c31acf0a18524416a185acf77992)
|
||||
FetchContent_Declare(spirv-reflect EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/SPIRV-Reflect/archive/refs/tags/vulkan-sdk-1.4.328.1.tar.gz
|
||||
@@ -312,6 +302,7 @@ if (WIVRN_BUILD_CLIENT)
|
||||
endif()
|
||||
|
||||
if (WIVRN_BUILD_SERVER OR WIVRN_BUILD_SERVER_LIBRARY)
|
||||
find_package(Python3 REQUIRED Interpreter)
|
||||
add_subdirectory(server)
|
||||
|
||||
if (WIVRN_BUILD_SERVER)
|
||||
@@ -323,9 +314,6 @@ if (WIVRN_BUILD_SERVER OR WIVRN_BUILD_SERVER_LIBRARY)
|
||||
message(STATUS "")
|
||||
message(STATUS "Audio backends:")
|
||||
message(STATUS "\tPipewire : ${WIVRN_USE_PIPEWIRE}")
|
||||
message(STATUS "")
|
||||
message(STATUS "Optional features:")
|
||||
message(STATUS "\tsystemd: ${WIVRN_USE_SYSTEMD}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -355,5 +343,10 @@ foreach(TARGET_NAME wivrn wivrn-server wivrn-dashboard wivrn-common wivrn-dissec
|
||||
target_compile_options(${TARGET_NAME} PRIVATE -Werror)
|
||||
endif()
|
||||
|
||||
if (WIVRN_ADDRESS_SANITIZER AND NOT ${TARGET_NAME} STREQUAL wivrn-dissector)
|
||||
target_compile_options(${TARGET_NAME} PRIVATE -fsanitize=address -fno-omit-frame-pointer)
|
||||
target_link_options(${TARGET_NAME} PRIVATE -fsanitize=address)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
@@ -43,6 +43,7 @@ We recommend using native packages if available for your distribution:
|
||||
- [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?show=wivrn)
|
||||
- [Ubuntu PPA](https://launchpad.net/~lvra/+archive/ubuntu/wivrn)
|
||||
|
||||
For OpenVR and Steam compatibility, you also need a compatibility library such as [xrizer](https://github.com/Supreeeme/xrizer/) or [OpenComposite](https://gitlab.com/znixian/OpenOVR/).
|
||||
|
||||
@@ -78,7 +79,7 @@ Avahi must be running:
|
||||
systemctl enable --now avahi-daemon
|
||||
```
|
||||
|
||||
On SteamOS, the Avahi configuration needs to be modified to allow user services such as WiVRn to publish services on the network; see https://github.com/WiVRn/WiVRn/issues/1001#issuecomment-4940906113 for instructions on how to do so.
|
||||
On SteamOS, the Avahi configuration needs to be modified to allow user services such as WiVRn to publish services on the network; see https://github.com/WiVRn/WiVRn/issues/1001#issuecomment-4940906113 for instructions on how to do so.
|
||||
|
||||
- If a firewall is installed, open port 5353/UDP for Avahi and ports 9757/UDP+TCP for WiVRn.
|
||||
- For example, if using UFW run `ufw allow 5353/udp` and `ufw allow 9757`.
|
||||
@@ -169,9 +170,10 @@ If the server list is empty in the headset app:
|
||||
|
||||
<details><summary>How do I see server logs when using the dashboard?</summary>
|
||||
|
||||
- Click Troubleshoot > Open server logs, or
|
||||
- Navigate to `${XDG_STATE_HOME}/wivrn/wivrn-dashboard` (with fallback to `${HOME}/.local/state` for `${XDG_STATE_HOME}`, or
|
||||
- For flatpak, navigate to `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`.</details>
|
||||
- Click **Troubleshoot > Open server logs**
|
||||
- Or, navigate to `${XDG_STATE_HOME}/wivrn/wivrn-dashboard`
|
||||
- In other words, on common setups, the dashboard writes logs to `~/.local/state/wivrn/wivrn-dashboard`
|
||||
- For WiVRn Flatpak, the dashboard writes logs to `~/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`</details>
|
||||
|
||||
<details><summary>My NVIDIA GPU P-State is limited to P2 instead of reaching the highest P0 while using the NVIDIA NVENC encoder</summary>
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16
-3
@@ -92,7 +92,7 @@ tasks.register("generatePngs", GeneratePngsTask) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def use_asan = project.hasProperty('wivrn_address_sanitizer') && wivrn_address_sanitizer == 'ON'
|
||||
|
||||
android {
|
||||
namespace = "org.meumeu.wivrn"
|
||||
@@ -117,16 +117,20 @@ android {
|
||||
def compressGlb = project.hasProperty('wivrn_compress_glb') ? wivrn_compress_glb : 'OFF'
|
||||
def fetchcontentBaseDir = project.hasProperty('fetchcontent_base_dir') ? ['-DFETCHCONTENT_BASE_DIR=' + fetchcontent_base_dir] : []
|
||||
|
||||
def asan = use_asan ? 'ON': 'OFF'
|
||||
def stl = use_asan ? 'c++_shared' : "c++_static"
|
||||
|
||||
externalNativeBuild {
|
||||
def css = project.hasProperty('wivrn_css') ? project.wivrn_css: "images/wivrn-local.css"
|
||||
|
||||
cmake {
|
||||
arguments = ['-DANDROID_TOOLCHAIN=clang',
|
||||
'-DANDROID_STL=c++_static',
|
||||
'-DANDROID_STL=' + stl,
|
||||
'-DCMAKE_ANDROID_NDK_VERSION=' + ndkVersion,
|
||||
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
|
||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||
'-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets").get().asFile,
|
||||
'-DRESOURCES_DIRECTORIES=' + layout.buildDirectory.dir("resources").get().asFile,
|
||||
'-DWIVRN_USE_SYSTEM_BOOST=OFF',
|
||||
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
|
||||
'-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON',
|
||||
@@ -139,13 +143,20 @@ android {
|
||||
'-DWIVRN_SHOW_IMGUI_DEMO_WINDOW=' + showImguiDemo,
|
||||
'-DWIVRN_CLIENT_DEBUG_MENU=' + showDebugMenu,
|
||||
'-DWIVRN_CSS=' + css,
|
||||
'-DWIVRN_COMPRESS_GLB=' + compressGlb] +
|
||||
'-DWIVRN_COMPRESS_GLB=' + compressGlb,
|
||||
'-DWIVRN_ADDRESS_SANITIZER=' + asan,
|
||||
] +
|
||||
fetchcontentBaseDir
|
||||
resValue "string", "app_name", project.hasProperty('wivrn_app_name') ? project.wivrn_app_name : "WiVRn Local"
|
||||
abiFilters 'arm64-v8a'//, 'x86_64'
|
||||
}
|
||||
|
||||
}
|
||||
packaging {
|
||||
jniLibs {
|
||||
useLegacyPackaging = use_asan
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
@@ -226,6 +237,7 @@ android {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
java.srcDirs = ['client/java']
|
||||
res.srcDirs = [ 'resources', layout.buildDirectory.dir('generated_resources') ]
|
||||
resources.srcDirs = [layout.buildDirectory.dir('resources')]
|
||||
|
||||
assets.srcDirs = ['assets', layout.buildDirectory.dir("assets")]
|
||||
}
|
||||
@@ -243,5 +255,6 @@ android {
|
||||
applicationVariants.all { variant ->
|
||||
// It probably works with merge${variant.name.capitalize()}Assets too
|
||||
tasks["generate${variant.name.capitalize()}Assets"].dependsOn "externalNativeBuild${variant.name.capitalize()}"
|
||||
tasks["merge${variant.name.capitalize()}Resources"].dependsOn "externalNativeBuild${variant.name.capitalize()}"
|
||||
}
|
||||
}
|
||||
|
||||
+19
-5
@@ -38,6 +38,7 @@ add_library(stb INTERFACE)
|
||||
target_include_directories(stb INTERFACE ${stb_SOURCE_DIR})
|
||||
|
||||
if(ANDROID)
|
||||
file(REMOVE_RECURSE ${RESOURCES_DIRECTORIES}/lib ${ANDROID_LIB_DIRECTORIES})
|
||||
add_library(wivrn MODULE)
|
||||
|
||||
find_library(ANDROID_LIBRARY NAMES android REQUIRED)
|
||||
@@ -80,6 +81,23 @@ if(ANDROID)
|
||||
"decoder/android/*.cpp"
|
||||
)
|
||||
target_sources(wivrn PRIVATE ${PLATFORM_SOURCE})
|
||||
|
||||
if (WIVRN_ADDRESS_SANITIZER)
|
||||
file(MAKE_DIRECTORY
|
||||
${RESOURCES_DIRECTORIES}/lib/${CMAKE_ANDROID_ARCH_ABI}
|
||||
${ANDROID_LIB_DIRECTORIES}/${CMAKE_ANDROID_ARCH_ABI})
|
||||
file(GLOB _asan_location
|
||||
${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/*/lib/linux/libclang_rt.asan-${CMAKE_SYSTEM_PROCESSOR}-android.so
|
||||
)
|
||||
file(COPY
|
||||
${_asan_location}
|
||||
DESTINATION ${ANDROID_LIB_DIRECTORIES}/${CMAKE_ANDROID_ARCH_ABI}
|
||||
)
|
||||
file(COPY_FILE
|
||||
${ANDROID_NDK}/wrap.sh/asan.sh
|
||||
${RESOURCES_DIRECTORIES}/lib/${CMAKE_ANDROID_ARCH_ABI}/wrap.sh
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
add_executable(wivrn)
|
||||
|
||||
@@ -106,8 +124,6 @@ endif()
|
||||
#
|
||||
target_compile_definitions(wivrn PRIVATE "XR_USE_TIMESPEC=1")
|
||||
|
||||
set_target_properties(wivrn PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
file(GLOB LOCAL_SOURCE CONFIGURE_DEPENDS
|
||||
"*.cpp"
|
||||
"decoder/*.cpp"
|
||||
@@ -144,6 +160,7 @@ target_link_libraries(wivrn
|
||||
target_compile_definitions(wivrn PRIVATE -DXR_USE_GRAPHICS_API_VULKAN)
|
||||
target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0)
|
||||
target_compile_definitions(wivrn PRIVATE -DGLM_ENABLE_EXPERIMENTAL)
|
||||
target_compile_definitions(wivrn PRIVATE IMGUI_DEFINE_MATH_OPERATORS)
|
||||
|
||||
target_include_directories(wivrn PRIVATE .)
|
||||
|
||||
@@ -214,9 +231,6 @@ if(WIVRN_USE_ANDROID_VALIDATION_LAYER)
|
||||
file(COPY
|
||||
${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
|
||||
DESTINATION ${ANDROID_LIB_DIRECTORIES})
|
||||
else()
|
||||
# silence "Manually-specified variables were not used by the project" warning
|
||||
set(_unused ${ANDROID_LIB_DIRECTORIES})
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ battery_status get_battery_status()
|
||||
return last_status;
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default"))) void Java_org_meumeu_wivrn_BroadcastReceiver_onReceive(JNIEnv * env, jobject instance, jobject ctxt_obj, jobject intent_obj)
|
||||
extern "C" void Java_org_meumeu_wivrn_BroadcastReceiver_onReceive(JNIEnv * env, jobject instance, jobject ctxt_obj, jobject intent_obj)
|
||||
{
|
||||
jni::jni_thread::setup_thread(env);
|
||||
jni::object<"android/content/Intent"> intent{intent_obj};
|
||||
|
||||
@@ -2,10 +2,7 @@ LIBAPP {
|
||||
global:
|
||||
ANativeActivity_onCreate;
|
||||
android_main;
|
||||
Java_org_meumeu_wivrn_BroadcastReceiver_onReceive;
|
||||
Java_org_meumeu_wivrn_MainActivity_onRequestPermissionsResult;
|
||||
Java_org_meumeu_wivrn_MainActivity_onActivityResult;
|
||||
Java_org_meumeu_wivrn_MainActivity_onNewIntent;
|
||||
Java_org_meumeu_wivrn*;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
@@ -59,7 +59,7 @@ jni::object<"android/net/Uri"> intent::get_uri()
|
||||
return obj.call<jni::object<"android/net/Uri">>("getData");
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default"))) void Java_org_meumeu_wivrn_MainActivity_onActivityResult(JNIEnv * env, jobject instance, int request_code, int result_code, jobject data_obj)
|
||||
extern "C" void Java_org_meumeu_wivrn_MainActivity_onActivityResult(JNIEnv * env, jobject instance, int request_code, int result_code, jobject data_obj)
|
||||
{
|
||||
auto it = callbacks.find(request_code);
|
||||
if (it == callbacks.end())
|
||||
|
||||
@@ -89,6 +89,7 @@ struct Void
|
||||
struct Int
|
||||
{
|
||||
constexpr static auto static_field = &_JNIEnv::GetStaticIntField;
|
||||
constexpr static auto obj_field = &_JNIEnv::GetIntField;
|
||||
constexpr static const auto call_method = &_JNIEnv::CallIntMethod;
|
||||
constexpr static const auto call_static_method = &_JNIEnv::CallStaticIntMethod;
|
||||
|
||||
@@ -277,6 +278,7 @@ struct object
|
||||
}
|
||||
std::unique_ptr<std::remove_pointer_t<jobject>, details::deleter> self;
|
||||
|
||||
constexpr static auto obj_field = &_JNIEnv::GetObjectField;
|
||||
constexpr static const auto call_method = &_JNIEnv::CallObjectMethod;
|
||||
constexpr static const auto call_static_method = &_JNIEnv::CallStaticObjectMethod;
|
||||
|
||||
@@ -335,6 +337,14 @@ struct object
|
||||
handles));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T field(const std::string & name)
|
||||
{
|
||||
auto & env = jni_thread::env();
|
||||
jfieldID id = env.GetFieldID(klass(), name.c_str(), T::type().c_str());
|
||||
return T((env.*T::obj_field)(*this, id));
|
||||
}
|
||||
|
||||
jobject handle() const
|
||||
{
|
||||
return *this;
|
||||
@@ -374,6 +384,7 @@ struct string : public string_t
|
||||
{
|
||||
using string_t::type;
|
||||
constexpr static auto static_field = &_JNIEnv::GetStaticObjectField;
|
||||
constexpr static auto obj_field = &_JNIEnv::GetObjectField;
|
||||
|
||||
operator jstring()
|
||||
{
|
||||
|
||||
@@ -93,7 +93,7 @@ void request_permission(const char * permission, std::function<void(bool)> callb
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default"))) void Java_org_meumeu_wivrn_MainActivity_onRequestPermissionsResult(
|
||||
extern "C" void Java_org_meumeu_wivrn_MainActivity_onRequestPermissionsResult(
|
||||
JNIEnv * env,
|
||||
jobject instance,
|
||||
int requestCode,
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "application.h"
|
||||
#include "jni.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
std::atomic_bool link_properties_changed = false;
|
||||
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onAvailable(JNIEnv * env, jobject instance, jobject network)
|
||||
{
|
||||
spdlog::info("NetworkInfoCallback_onAvailable");
|
||||
}
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onBlockedStatusChanged(JNIEnv * env, jobject instance, jobject network, jboolean blocked)
|
||||
{
|
||||
spdlog::info("NetworkInfoCallback_onBlockedStatusChanged");
|
||||
}
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onCapabilitiesChanged(JNIEnv * env, jobject instance, jobject network, jobject caps)
|
||||
{
|
||||
spdlog::info("NetworkInfoCallback_onCapabitilitiesChanged");
|
||||
}
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onLinkPropertiesChanged(JNIEnv * env, jobject instance, jobject network, jobject jprops)
|
||||
{
|
||||
link_properties_changed = true;
|
||||
}
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onLosing(JNIEnv * env, jobject instance, jobject network, jint ms)
|
||||
{
|
||||
spdlog::info("NetworkInfoCallback_onLosing");
|
||||
}
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onLost(JNIEnv * env, jobject instance, jobject network)
|
||||
{
|
||||
spdlog::info("NetworkInfoCallback_onLost");
|
||||
link_properties_changed = true;
|
||||
}
|
||||
extern "C" void Java_org_meumeu_wivrn_NetworkInfoCallback_onUnavailable(JNIEnv * env, jobject instance)
|
||||
{
|
||||
spdlog::info("NetworkInfoCallback_onUnavailable");
|
||||
application::get_config().usb_network = false;
|
||||
}
|
||||
|
||||
bool usb_link_properties_changed()
|
||||
{
|
||||
return link_properties_changed.exchange(false);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
bool usb_link_properties_changed();
|
||||
+42
-2
@@ -1404,7 +1404,12 @@ void application::initialize()
|
||||
spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW);
|
||||
spaces[size_t(xr::spaces::world)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE);
|
||||
|
||||
config.emplace(xr_system_id, xr_session);
|
||||
config.emplace(xr_system_id, xr_session, application::get_config_path() / "client.json");
|
||||
default_config.emplace(xr_system_id, xr_session);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
set_usb_networking(config->usb_network);
|
||||
#endif
|
||||
|
||||
// HTC face tracker fails if created later
|
||||
// we can destroy it right away, it actually stores static handles
|
||||
@@ -1486,7 +1491,7 @@ std::pair<XrAction, XrActionType> application::get_action(std::string_view reque
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
extern "C" __attribute__((visibility("default"))) void Java_org_meumeu_wivrn_MainActivity_onNewIntent(JNIEnv * env, jobject instance, jobject intent_obj)
|
||||
extern "C" void Java_org_meumeu_wivrn_MainActivity_onNewIntent(JNIEnv * env, jobject instance, jobject intent_obj)
|
||||
{
|
||||
jni::jni_thread::setup_thread(env);
|
||||
jni::object<"android/content/Intent"> intent{intent_obj};
|
||||
@@ -1676,6 +1681,9 @@ void application::cleanup()
|
||||
|
||||
#ifdef __ANDROID__
|
||||
jni::jni_thread::detach();
|
||||
app_info.native_app->onAppCmd = nullptr;
|
||||
app_info.native_app->onInputEvent = nullptr;
|
||||
app_info.native_app->userData = nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1826,6 +1834,38 @@ void application::push_scene(std::shared_ptr<scene> s)
|
||||
instance().scene_stack.push_back(std::move(s));
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
void application::set_usb_networking(bool enabled)
|
||||
{
|
||||
jni::object<""> act(app_info.native_app->activity->clazz);
|
||||
auto app = act.call<jni::object<"android/app/Application">>("getApplication");
|
||||
auto ctx = app.call<jni::object<"android/content/Context">>("getApplicationContext");
|
||||
auto system_service = ctx.call<jni::object<"java/lang/Object">>("getSystemService", jni::string("connectivity"));
|
||||
|
||||
auto cb = act.field<jni::object<"android/net/ConnectivityManager$NetworkCallback">>("netcb");
|
||||
try
|
||||
{
|
||||
if (enabled)
|
||||
{
|
||||
auto req = jni::new_object<"android/net/NetworkRequest$Builder">()
|
||||
.call<jni::object<"android/net/NetworkRequest$Builder">>("removeCapability", jni::Int(12) /*NET_CAPABILITY_INTERNET*/)
|
||||
.call<jni::object<"android/net/NetworkRequest$Builder">>("removeCapability", jni::Int(14) /*NET_CAPABILITY_TRUSTED*/)
|
||||
.call<jni::object<"android/net/NetworkRequest$Builder">>("addTransportType", jni::Int(8) /*TRANSPORT_USB*/)
|
||||
.call<jni::object<"android/net/NetworkRequest">>("build");
|
||||
|
||||
// system_service.call<void>("requestNetwork", req, jni::new_object<"org/meumeu/wivrn/NetworkInfoCallback">());
|
||||
system_service.call<void>("requestNetwork", req, cb);
|
||||
}
|
||||
else
|
||||
{
|
||||
system_service.call<void>("unregisterNetworkCallback", cb);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{}
|
||||
}
|
||||
#endif
|
||||
|
||||
void application::poll_actions()
|
||||
{
|
||||
std::array<XrActionSet, 2> action_sets{
|
||||
|
||||
+16
-8
@@ -55,7 +55,7 @@
|
||||
class scene;
|
||||
|
||||
#ifdef __ANDROID__
|
||||
extern "C" __attribute__((visibility("default"))) void Java_org_meumeu_wivrn_MainActivity_onNewIntent(JNIEnv * env, jobject instance, jobject intent_obj);
|
||||
extern "C" void Java_org_meumeu_wivrn_MainActivity_onNewIntent(JNIEnv * env, jobject instance, jobject intent_obj);
|
||||
#endif
|
||||
|
||||
struct application_info
|
||||
@@ -77,7 +77,7 @@ class application : public singleton<application>
|
||||
|
||||
private:
|
||||
#ifdef __ANDROID__
|
||||
friend __attribute__((visibility("default"))) void Java_org_meumeu_wivrn_MainActivity_onNewIntent(JNIEnv * env, jobject instance, jobject intent_obj);
|
||||
friend void Java_org_meumeu_wivrn_MainActivity_onNewIntent(JNIEnv * env, jobject instance, jobject intent_obj);
|
||||
#endif
|
||||
|
||||
application_info app_info;
|
||||
@@ -156,6 +156,7 @@ private:
|
||||
std::chrono::nanoseconds last_scene_cpu_time;
|
||||
|
||||
std::optional<configuration> config;
|
||||
std::optional<configuration> default_config;
|
||||
|
||||
boost::locale::generator gen;
|
||||
boost::locale::gnu_gettext::messages_info messages_info;
|
||||
@@ -311,6 +312,10 @@ public:
|
||||
return *instance().wifi;
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
void set_usb_networking(bool enabled);
|
||||
#endif
|
||||
|
||||
static void ignore_debug_reports_for(void * object)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
@@ -330,8 +335,9 @@ public:
|
||||
template <typename T>
|
||||
static void set_debug_reports_name(const T & object, std::string name)
|
||||
{
|
||||
// #ifndef NDEBUG
|
||||
// if (instance().debug_utils_found)
|
||||
if (not vk_allocator::instance().has_debug_utils)
|
||||
return;
|
||||
|
||||
const vk::DebugUtilsObjectNameInfoEXT name_info{
|
||||
.objectType = T::objectType,
|
||||
.objectHandle = (uint64_t)(typename T::NativeType)object,
|
||||
@@ -339,10 +345,6 @@ public:
|
||||
};
|
||||
|
||||
instance().vk_device.setDebugUtilsObjectNameEXT(name_info);
|
||||
|
||||
// printf("set_debug_reports_name %p, %s\n", object, name.c_str());
|
||||
// instance().debug_report_object_name[(uint64_t)object] = std::move(name);
|
||||
// #endif
|
||||
}
|
||||
|
||||
static thread_safe<vk::raii::Queue> & get_queue()
|
||||
@@ -432,6 +434,12 @@ public:
|
||||
return *instance().config;
|
||||
}
|
||||
|
||||
static configuration & get_default_config()
|
||||
{
|
||||
assert(instance().default_config);
|
||||
return *instance().default_config;
|
||||
}
|
||||
|
||||
static XrSessionState get_session_state()
|
||||
{
|
||||
return instance().session_state;
|
||||
|
||||
+193
-146
@@ -24,7 +24,11 @@
|
||||
#include "wivrn_packets.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <functional>
|
||||
#include <magic_enum.hpp>
|
||||
#include <string_view>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include "android/permissions.h"
|
||||
@@ -33,6 +37,121 @@
|
||||
// If no refresh rate is configured, don't select a too high one
|
||||
static const float max_default_rate = 100;
|
||||
|
||||
// key <-> member serialization descriptor for scalar settings (see config_fields()).
|
||||
// The few settings that aren't scalars are handled explicitly in save()/load().
|
||||
struct config_field
|
||||
{
|
||||
std::function<void(std::ostream &, const configuration &)> save;
|
||||
std::function<void(simdjson::dom::element, configuration &)> load;
|
||||
};
|
||||
|
||||
namespace
|
||||
{
|
||||
template <typename>
|
||||
inline constexpr bool is_optional_v = false;
|
||||
template <typename T>
|
||||
inline constexpr bool is_optional_v<std::optional<T>> = true;
|
||||
|
||||
template <typename T>
|
||||
struct remove_optional
|
||||
{
|
||||
using type = T;
|
||||
};
|
||||
template <typename T>
|
||||
struct remove_optional<std::optional<T>>
|
||||
{
|
||||
using type = T;
|
||||
};
|
||||
|
||||
std::ostream & operator<<(std::ostream & stream, feature f)
|
||||
{
|
||||
return stream << "\"" << magic_enum::enum_name(f) << "\"";
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void write_value(std::ostream & json, const T & value)
|
||||
{
|
||||
if constexpr (std::is_same_v<T, bool>)
|
||||
json << std::boolalpha << value;
|
||||
else if constexpr (std::is_same_v<T, std::string>)
|
||||
json << json_string(value);
|
||||
else if constexpr (std::is_enum_v<T>)
|
||||
json << json_string(magic_enum::enum_name(value));
|
||||
else if constexpr (std::is_integral_v<T>)
|
||||
json << (uint64_t)value;
|
||||
else // floating point
|
||||
json << value;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::optional<T> read_value(simdjson::simdjson_result<simdjson::dom::element> val)
|
||||
{
|
||||
if constexpr (std::is_same_v<T, bool>)
|
||||
{
|
||||
if (val.is_bool())
|
||||
return val.get_bool();
|
||||
}
|
||||
else if constexpr (std::is_same_v<T, std::string>)
|
||||
{
|
||||
if (val.is_string())
|
||||
return std::string(std::string_view(val.get_string().value()));
|
||||
}
|
||||
else if constexpr (std::is_enum_v<T>)
|
||||
{
|
||||
if (val.is_string())
|
||||
{
|
||||
auto name = val.get_string().value();
|
||||
for (const auto & [e, n]: magic_enum::enum_entries<T>())
|
||||
if (name == n)
|
||||
return e;
|
||||
}
|
||||
}
|
||||
else if constexpr (std::is_integral_v<T>)
|
||||
{
|
||||
if (val.is_uint64())
|
||||
return (T)val.get_uint64();
|
||||
if (val.is_int64() and int64_t(val.get_int64()) >= 0)
|
||||
return (T)val.get_int64();
|
||||
}
|
||||
else // floating point
|
||||
{
|
||||
if (val.is_double())
|
||||
return (T)val.get_double();
|
||||
if (val.is_int64())
|
||||
return (T)val.get_int64();
|
||||
if (val.is_uint64())
|
||||
return (T)val.get_uint64();
|
||||
}
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
// build a field for a plain member: bool / float / integral / std::string / enum,
|
||||
// optionally wrapped in std::optional (only written when set)
|
||||
template <typename T>
|
||||
config_field scalar(const char * key, T configuration::* member)
|
||||
{
|
||||
return {
|
||||
.save = [key, member](std::ostream & json, const configuration & c) {
|
||||
if constexpr (is_optional_v<T>)
|
||||
{
|
||||
if (c.*member)
|
||||
{
|
||||
json << ",\"" << key << "\":";
|
||||
write_value(json, *(c.*member));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
json << ",\"" << key << "\":";
|
||||
write_value(json, c.*member);
|
||||
} },
|
||||
.load = [key, member](simdjson::dom::element root, configuration & c) {
|
||||
if (auto v = read_value<typename remove_optional<T>::type>(root[key]))
|
||||
c.*member = *v; },
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
bool configuration::check_feature(feature f) const
|
||||
{
|
||||
{
|
||||
@@ -105,17 +224,22 @@ configuration::configuration(xr::system & system, xr::session & session)
|
||||
features[feature::hand_tracking] = system.hand_tracking_supported();
|
||||
|
||||
const auto & rates = session.get_refresh_rates();
|
||||
preferred_refresh_rate = rates.empty() ? 0 : rates[0];
|
||||
for (auto rate: rates)
|
||||
{
|
||||
if (rate >= max_default_rate)
|
||||
break;
|
||||
preferred_refresh_rate = rate;
|
||||
}
|
||||
}
|
||||
|
||||
configuration::configuration(xr::system & system, xr::session & session, const std::filesystem::path & config_path) :
|
||||
configuration(system, session)
|
||||
{
|
||||
try
|
||||
{
|
||||
simdjson::dom::parser parser;
|
||||
simdjson::dom::element root = parser.load((application::get_config_path() / "client.json").native());
|
||||
simdjson::dom::element root = parser.load(config_path.native());
|
||||
for (simdjson::dom::object i: simdjson::dom::array(root["servers"]))
|
||||
{
|
||||
server_data data{
|
||||
@@ -134,60 +258,15 @@ configuration::configuration(xr::system & system, xr::session & session)
|
||||
servers.emplace(data.service.txt["cookie"], data);
|
||||
}
|
||||
|
||||
if (auto val = root["preferred_refresh_rate"]; val.is_double())
|
||||
{
|
||||
float f = val.get_double();
|
||||
if (f == 0 or utils::contains(rates, f))
|
||||
preferred_refresh_rate = f;
|
||||
}
|
||||
float default_refresh_rate = preferred_refresh_rate;
|
||||
|
||||
if (auto val = root["minimum_refresh_rate"]; val.is_double())
|
||||
minimum_refresh_rate = val.get_double();
|
||||
for (const auto & f: config_fields())
|
||||
f.load(root, *this);
|
||||
|
||||
if (auto val = root["resolution_scale"]; val.is_double())
|
||||
resolution_scale = val.get_double();
|
||||
|
||||
if (auto val = root["stream_scale"]; val.is_double())
|
||||
stream_scale = val.get_double();
|
||||
|
||||
if (auto val = root["codec"]; val.is_string())
|
||||
{
|
||||
const auto codec_str = val.get_string().value();
|
||||
for (const auto & [c, name]: magic_enum::enum_entries<wivrn::video_codec>())
|
||||
{
|
||||
if (codec_str == name)
|
||||
{
|
||||
codec = c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (auto val = root["bit_depth"]; val.is_uint64())
|
||||
bit_depth = val.get_uint64();
|
||||
|
||||
if (auto val = root["bitrate_bps"]; val.is_number())
|
||||
bitrate_bps = val.get_uint64();
|
||||
|
||||
if (auto val = root["enable_stream_gui"]; val.is_bool())
|
||||
enable_stream_gui = val.get_bool();
|
||||
|
||||
if (auto val = root["openxr_post_processing"]; val.is_object())
|
||||
parse_openxr_post_processing_options(val.get_object());
|
||||
|
||||
if (auto val = root["passthrough_enabled"]; val.is_bool())
|
||||
passthrough_enabled = val.get_bool();
|
||||
|
||||
if (auto val = root["mic_unprocessed_audio"]; val.is_bool())
|
||||
mic_unprocessed_audio = val.get_bool();
|
||||
|
||||
if (auto val = root["forward_keyboard"]; val.is_bool())
|
||||
forward_keyboard = val.get_bool();
|
||||
|
||||
if (auto val = root["forward_mouse"]; val.is_bool())
|
||||
forward_mouse = val.get_bool();
|
||||
|
||||
if (auto val = root["forward_gamepad"]; val.is_bool())
|
||||
forward_gamepad = val.get_bool();
|
||||
// refresh rate must be supported by this headset, otherwise fall back to the default
|
||||
const auto & rates = session.get_refresh_rates();
|
||||
if (preferred_refresh_rate != 0 and not utils::contains(rates, preferred_refresh_rate))
|
||||
preferred_refresh_rate = default_refresh_rate;
|
||||
|
||||
if (auto val = root["body_parts"]; val.is_object())
|
||||
{
|
||||
@@ -208,44 +287,24 @@ configuration::configuration(xr::system & system, xr::session & session)
|
||||
}
|
||||
}
|
||||
|
||||
if (auto val = root["virtual_keyboard_layout"]; val.is_string())
|
||||
virtual_keyboard_layout = val.get_string().value();
|
||||
|
||||
for (const auto & [i, name]: magic_enum::enum_entries<feature>())
|
||||
// nested object
|
||||
if (auto val = root["openxr_post_processing"]; val.is_object())
|
||||
{
|
||||
if (auto val = root[name]; val.is_bool())
|
||||
features[i] = val.get_bool();
|
||||
auto obj = val.get_object();
|
||||
openxr_post_processing = {};
|
||||
if (auto v = obj["super_sampling"]; v.is_int64())
|
||||
openxr_post_processing.super_sampling = v.get_int64();
|
||||
if (auto v = obj["sharpening"]; v.is_int64())
|
||||
openxr_post_processing.sharpening = v.get_int64();
|
||||
}
|
||||
|
||||
// feature flags, keyed by enum name
|
||||
for (const auto & [f, name]: magic_enum::enum_entries<feature>())
|
||||
if (auto val = root[name]; val.is_bool())
|
||||
features[f] = val.get_bool();
|
||||
|
||||
if (system.passthrough_supported() == xr::passthrough_type::none)
|
||||
passthrough_enabled = false;
|
||||
|
||||
if (auto val = root["override_foveation_enable"]; val.is_bool())
|
||||
override_foveation_enable = val.get_bool();
|
||||
|
||||
if (auto val = root["override_foveation_pitch"]; val.is_double())
|
||||
override_foveation_pitch = val.get_double();
|
||||
|
||||
if (auto val = root["override_foveation_distance"]; val.is_double())
|
||||
override_foveation_distance = val.get_double();
|
||||
|
||||
if (auto val = root["first_run"]; val.is_bool())
|
||||
first_run = val.get_bool();
|
||||
|
||||
if (auto val = root["locale"]; val.is_string())
|
||||
locale = val.get_string().value();
|
||||
|
||||
if (auto val = root["environment_model"]; val.is_string())
|
||||
environment_model = (std::string_view)val.get_string();
|
||||
|
||||
if (auto val = root["high_power_mode"]; val.is_bool())
|
||||
high_power_mode = val.get_bool();
|
||||
|
||||
if (auto val = root["fps_divider"]; val.is_uint64())
|
||||
fps_divider = (uint32_t)val.get_uint64();
|
||||
|
||||
if (auto val = root["extended_config"]; val.is_bool())
|
||||
extended_config = val.get_bool();
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
@@ -253,27 +312,43 @@ configuration::configuration(xr::system & system, xr::session & session)
|
||||
}
|
||||
}
|
||||
|
||||
void configuration::parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> openxr_post_processing_root)
|
||||
const std::vector<config_field> & configuration::config_fields()
|
||||
{
|
||||
openxr_post_processing = {};
|
||||
if (auto val = openxr_post_processing_root["super_sampling"]; val.is_int64())
|
||||
openxr_post_processing.super_sampling = val.get_int64();
|
||||
|
||||
if (auto val = openxr_post_processing_root["sharpening"]; val.is_int64())
|
||||
openxr_post_processing.sharpening = val.get_int64();
|
||||
}
|
||||
|
||||
static std::ostream & operator<<(std::ostream & stream, feature f)
|
||||
{
|
||||
return stream << "\"" << magic_enum::enum_name(f) << "\"";
|
||||
}
|
||||
|
||||
static std::ostream & write_openxr_post_processing(std::ofstream & stream, const configuration::openxr_post_processing_settings & openxr_post_processing)
|
||||
{
|
||||
stream << "{\"super_sampling\":" << openxr_post_processing.super_sampling;
|
||||
stream << ",\"sharpening\":" << openxr_post_processing.sharpening;
|
||||
stream << "}";
|
||||
return stream;
|
||||
static const std::vector<config_field> fields = {
|
||||
scalar("resolution_scale", &configuration::resolution_scale),
|
||||
scalar("bitrate_bps", &configuration::bitrate_bps),
|
||||
scalar("enable_stream_gui", &configuration::enable_stream_gui),
|
||||
scalar("app_list_view", &configuration::app_list_view),
|
||||
scalar("app_icon_size", &configuration::app_icon_size),
|
||||
scalar("theme_preset", &configuration::theme_preset),
|
||||
scalar("theme_accent", &configuration::theme_accent),
|
||||
scalar("theme_rounding", &configuration::theme_rounding),
|
||||
scalar("theme_card_rounding", &configuration::theme_card_rounding),
|
||||
scalar("theme_font_scale", &configuration::theme_font_scale),
|
||||
scalar("theme_background_alpha", &configuration::theme_background_alpha),
|
||||
scalar("passthrough_enabled", &configuration::passthrough_enabled),
|
||||
scalar("mic_unprocessed_audio", &configuration::mic_unprocessed_audio),
|
||||
scalar("forward_keyboard", &configuration::forward_keyboard),
|
||||
scalar("forward_mouse", &configuration::forward_mouse),
|
||||
scalar("forward_gamepad", &configuration::forward_gamepad),
|
||||
scalar("virtual_keyboard_layout", &configuration::virtual_keyboard_layout),
|
||||
scalar("override_foveation_enable", &configuration::override_foveation_enable),
|
||||
scalar("override_foveation_pitch", &configuration::override_foveation_pitch),
|
||||
scalar("override_foveation_distance", &configuration::override_foveation_distance),
|
||||
scalar("first_run", &configuration::first_run),
|
||||
scalar("locale", &configuration::locale),
|
||||
scalar("environment_model", &configuration::environment_model),
|
||||
scalar("high_power_mode", &configuration::high_power_mode),
|
||||
scalar("fps_divider", &configuration::fps_divider),
|
||||
scalar("extended_config", &configuration::extended_config),
|
||||
scalar("preferred_refresh_rate", &configuration::preferred_refresh_rate),
|
||||
scalar("minimum_refresh_rate", &configuration::minimum_refresh_rate),
|
||||
scalar("stream_scale", &configuration::stream_scale),
|
||||
scalar("codec", &configuration::codec),
|
||||
scalar("bit_depth", &configuration::bit_depth),
|
||||
scalar("usb_network", &configuration::usb_network),
|
||||
};
|
||||
return fields;
|
||||
}
|
||||
|
||||
void configuration::save()
|
||||
@@ -305,51 +380,18 @@ void configuration::save()
|
||||
std::ofstream json(application::get_config_path() / "client.json");
|
||||
|
||||
json << "{\"servers\":[" << servers_str << "]";
|
||||
json << ",\"preferred_refresh_rate\":" << preferred_refresh_rate;
|
||||
if (minimum_refresh_rate)
|
||||
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
|
||||
json << ",\"resolution_scale\":" << resolution_scale;
|
||||
if (stream_scale)
|
||||
json << ",\"stream_scale\":" << *stream_scale;
|
||||
if (codec)
|
||||
json << ",\"codec\":" << json_string(magic_enum::enum_name(*codec));
|
||||
json << ",\"bit_depth\":" << (uint64_t)bit_depth;
|
||||
json << ",\"bitrate_bps\":" << bitrate_bps;
|
||||
json << ",\"openxr_post_processing\":";
|
||||
write_openxr_post_processing(json, openxr_post_processing);
|
||||
json << ",\"passthrough_enabled\":" << std::boolalpha << passthrough_enabled;
|
||||
json << ",\"mic_unprocessed_audio\":" << std::boolalpha << mic_unprocessed_audio;
|
||||
json << ",\"forward_keyboard\":" << std::boolalpha << forward_keyboard;
|
||||
json << ",\"forward_mouse\":" << std::boolalpha << forward_mouse;
|
||||
json << ",\"forward_gamepad\":" << std::boolalpha << forward_gamepad;
|
||||
|
||||
std::stringstream body_part_ss;
|
||||
for (const auto & [b, name]: magic_enum::enum_entries<wivrn::from_headset::body_part_mask>())
|
||||
{
|
||||
bool enabled = (body_part_mask & std::to_underlying(b)) != 0;
|
||||
body_part_ss << "\"" << name << "\":" << std::boolalpha << enabled << ",";
|
||||
}
|
||||
for (const auto & f: config_fields())
|
||||
f.save(json, *this);
|
||||
|
||||
std::string body_parts_str = body_part_ss.str();
|
||||
if (!body_parts_str.empty())
|
||||
{
|
||||
body_parts_str.pop_back(); // Remove last comma
|
||||
json << ",\"body_parts\":{" << body_parts_str << "}";
|
||||
}
|
||||
// nested object
|
||||
json << ",\"openxr_post_processing\":{\"super_sampling\":" << openxr_post_processing.super_sampling;
|
||||
json << ",\"sharpening\":" << openxr_post_processing.sharpening << "}";
|
||||
|
||||
json << ",\"enable_stream_gui\":" << std::boolalpha << enable_stream_gui;
|
||||
// feature flags, keyed by enum name
|
||||
for (auto & [key, value]: features)
|
||||
json << "," << key << ":" << std::boolalpha << value;
|
||||
json << ",\"virtual_keyboard_layout\":" << json_string(virtual_keyboard_layout);
|
||||
json << ",\"override_foveation_enable\":" << std::boolalpha << override_foveation_enable;
|
||||
json << ",\"override_foveation_pitch\":" << override_foveation_pitch;
|
||||
json << ",\"override_foveation_distance\":" << override_foveation_distance;
|
||||
json << ",\"first_run\":" << std::boolalpha << first_run;
|
||||
json << ",\"locale\":" << json_string(locale);
|
||||
json << ",\"environment_model\":" << json_string(environment_model);
|
||||
json << ",\"high_power_mode\":" << std::boolalpha << high_power_mode;
|
||||
json << ",\"fps_divider\":" << fps_divider;
|
||||
json << ",\"extended_config\":" << std::boolalpha << extended_config;
|
||||
|
||||
json << "}";
|
||||
}
|
||||
|
||||
@@ -362,6 +404,11 @@ float configuration::get_stream_scale() const
|
||||
{
|
||||
if (stream_scale)
|
||||
return *stream_scale;
|
||||
return get_default_stream_scale();
|
||||
}
|
||||
|
||||
float configuration::get_default_stream_scale() const
|
||||
{
|
||||
if (check_feature(feature::eye_gaze))
|
||||
return 0.3;
|
||||
return 0.5;
|
||||
|
||||
+24
-3
@@ -22,12 +22,14 @@
|
||||
#include "wivrn_discover.h"
|
||||
#include "wivrn_packets.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <simdjson.h>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
namespace xr
|
||||
@@ -36,6 +38,9 @@ class session;
|
||||
class system;
|
||||
} // namespace xr
|
||||
|
||||
// key <-> member serialization descriptor, defined in configuration.cpp
|
||||
struct config_field;
|
||||
|
||||
enum class feature
|
||||
{
|
||||
microphone,
|
||||
@@ -61,7 +66,7 @@ public:
|
||||
std::map<std::string, server_data> servers;
|
||||
float preferred_refresh_rate = 0;
|
||||
std::optional<float> minimum_refresh_rate;
|
||||
float resolution_scale = 1.0;
|
||||
float resolution_scale = 1.2;
|
||||
std::optional<wivrn::video_codec> codec;
|
||||
uint32_t bitrate_bps = 50'000'000;
|
||||
uint8_t bit_depth = 10;
|
||||
@@ -78,6 +83,18 @@ public:
|
||||
|
||||
bool enable_stream_gui = true;
|
||||
|
||||
// application launcher: list vs grid, and grid icon size, 0 small 1 medium 2 large
|
||||
bool app_list_view = false;
|
||||
uint32_t app_icon_size = 0;
|
||||
|
||||
// interface theme, defaults match the built-in "Dark" preset and "Blue" accent
|
||||
std::string theme_preset = "Dark";
|
||||
std::string theme_accent = "Blue";
|
||||
float theme_rounding = 8;
|
||||
float theme_card_rounding = 14;
|
||||
float theme_font_scale = 1.0;
|
||||
float theme_background_alpha = 0.75;
|
||||
|
||||
// XR_FB_composition_layer_settings extension flags
|
||||
struct openxr_post_processing_settings
|
||||
{
|
||||
@@ -97,6 +114,8 @@ public:
|
||||
bool high_power_mode = true;
|
||||
uint32_t fps_divider = 1;
|
||||
|
||||
bool usb_network = false;
|
||||
|
||||
// Allow unsafe config values
|
||||
bool extended_config = false;
|
||||
|
||||
@@ -112,16 +131,18 @@ private:
|
||||
std::map<feature, bool> features;
|
||||
std::optional<float> stream_scale;
|
||||
|
||||
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
|
||||
// table of scalar settings shared by save()/load(); non-scalar settings are explicit
|
||||
static const std::vector<config_field> & config_fields();
|
||||
|
||||
public:
|
||||
configuration(xr::system &, xr::session &);
|
||||
configuration() = default;
|
||||
configuration(xr::system &, xr::session &, const std::filesystem::path &);
|
||||
|
||||
void save();
|
||||
|
||||
void set_stream_scale(float);
|
||||
float get_stream_scale() const;
|
||||
float get_default_stream_scale() const;
|
||||
|
||||
uint32_t max_bitrate(bool extended) const
|
||||
{
|
||||
|
||||
+7
-27
@@ -64,6 +64,13 @@ constexpr float pointer_fading_distance = 40;
|
||||
// Pointer color
|
||||
constexpr uint32_t pointer_color = 0x40ffffff;
|
||||
constexpr uint32_t pointer_color_border = 0xff000000;
|
||||
|
||||
// offset of a popup layer in front of its main GUI panel
|
||||
constexpr glm::vec3 popup_position = {0, 0, 0.05};
|
||||
|
||||
// world-space offset of a hover tooltip layer from the hovered item
|
||||
constexpr glm::vec3 tooltip_distance = {0, 0.004, 0.005};
|
||||
|
||||
} // namespace constants::gui
|
||||
|
||||
namespace constants::lobby
|
||||
@@ -78,7 +85,6 @@ constexpr auto gui_pitches = std::to_array<std::pair<float, float>>({
|
||||
{90, 78},
|
||||
});
|
||||
constexpr float keyboard_pitch = -0.6;
|
||||
constexpr glm::vec3 popup_position = {0, 0, 0.05};
|
||||
constexpr glm::vec3 keyboard_position = {0, -0.3, 0.1};
|
||||
|
||||
// Position of the near plane
|
||||
@@ -99,10 +105,6 @@ constexpr float initial_gui_distance = 0.5;
|
||||
// Skybox color
|
||||
constexpr XrColor4f sky_color = {0, 0.25, 0.5, 1};
|
||||
|
||||
// Dimming scale/bias when a popup window is shown
|
||||
constexpr XrColor4f dimming_scale = {0.5, 0.5, 0.5, 1};
|
||||
constexpr XrColor4f dimming_bias = {0.25, 0.25, 0.25, 0};
|
||||
|
||||
// Z-indices of composition layers
|
||||
constexpr int zindex_passthrough = -2;
|
||||
constexpr int zindex_lobby = -1;
|
||||
@@ -136,25 +138,3 @@ constexpr float gui_min_layer_distance = 0.5;
|
||||
constexpr float gui_max_layer_distance = 3;
|
||||
|
||||
} // namespace constants::stream
|
||||
|
||||
namespace constants::style
|
||||
{
|
||||
constexpr ImVec2 window_padding = {20, 20};
|
||||
constexpr float window_border_size = 2;
|
||||
constexpr float window_rounding = 10;
|
||||
|
||||
constexpr ImVec2 tooltip_padding = {5, 5};
|
||||
constexpr float tooltip_rounding = 0;
|
||||
constexpr glm::vec3 tooltip_distance = {0, 0.004, 0.005};
|
||||
|
||||
constexpr ImVec2 button_size = {220, 80};
|
||||
constexpr ImVec2 icon_button_size = {80, 80};
|
||||
constexpr float connection_popup_width = 1000;
|
||||
|
||||
constexpr ImVec2 pin_entry_key_size = {90, 70};
|
||||
constexpr ImVec2 pin_entry_item_spacing = {10, 10};
|
||||
constexpr float pin_entry_popup_width = 3 * pin_entry_key_size.x + 2 * pin_entry_item_spacing.x;
|
||||
|
||||
constexpr ImColor warn(0xf9, 0x73, 0x06);
|
||||
|
||||
} // namespace constants::style
|
||||
|
||||
@@ -195,6 +195,8 @@ decoder::decoder(
|
||||
|
||||
decoder::~decoder()
|
||||
{
|
||||
if (image_reader)
|
||||
AImageReader_setImageListener(image_reader.get(), nullptr);
|
||||
if (media_codec)
|
||||
{
|
||||
AMediaCodec_stop(media_codec.get());
|
||||
|
||||
@@ -190,12 +190,28 @@ void hmd_traits::init()
|
||||
{
|
||||
panel_width_override = 2064; // Quest 3
|
||||
controller_profile = "meta-quest-touch-plus";
|
||||
usb_net = true;
|
||||
}
|
||||
else if (device == "panther") // Quest 3S
|
||||
{
|
||||
panel_width_override = 1832;
|
||||
controller_profile = "meta-quest-touch-plus";
|
||||
}
|
||||
|
||||
if (auto v = get_property("ro.hzos.build.display_name"))
|
||||
{
|
||||
auto digits = utils::split(*v, ".");
|
||||
try
|
||||
{
|
||||
auto major = std::stoi(digits.at(0));
|
||||
auto minor = std::stoi(digits.at(1));
|
||||
usb_net = major > 2 or (major == 2 and minor >= 6);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
spdlog::warn("Failed to parse Horizon OS version {}", *v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (model == "Lynx-R1")
|
||||
@@ -269,8 +285,13 @@ void hmd_traits::init()
|
||||
controller_profile = "htc-vive-focus-3";
|
||||
|
||||
if (model == "VIVE Focus 3")
|
||||
{
|
||||
panel_width_override = 2448;
|
||||
|
||||
// Reports VK_EXT_debug_utils but does not expose vkSetDebugUtilsObjectNameEXT
|
||||
vk_debug_ext_allowed = false;
|
||||
}
|
||||
|
||||
if (model == "VIVE Focus Vision")
|
||||
panel_width_override = 2448;
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ public:
|
||||
bool hand_interaction_grip_surface = true;
|
||||
bool pico_face_tracker = false;
|
||||
bool discard_frame = true; // can do xrBeginFrame twice to discard the first one
|
||||
bool usb_net = false;
|
||||
std::unordered_map<std::string, std::string> override_shader;
|
||||
std::unordered_set<std::string> blacklisted_extensions;
|
||||
#ifndef NDEBUG
|
||||
|
||||
@@ -17,6 +17,7 @@ public class MainActivity extends android.app.NativeActivity
|
||||
public native void onActivityResult(int requestCode, int resultCode, android.content.Intent data);
|
||||
|
||||
private android.content.BroadcastReceiver BatteryInfoReceiver = null;
|
||||
public android.net.ConnectivityManager.NetworkCallback netcb = null;
|
||||
|
||||
@Override
|
||||
protected void onCreate(android.os.Bundle savedInstanceState)
|
||||
@@ -24,6 +25,7 @@ public class MainActivity extends android.app.NativeActivity
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
this.BatteryInfoReceiver = new BroadcastReceiver();
|
||||
this.netcb = new org.meumeu.wivrn.NetworkInfoCallback();
|
||||
|
||||
this.registerReceiver(this.BatteryInfoReceiver, new android.content.IntentFilter(android.content.Intent.ACTION_BATTERY_CHANGED));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.meumeu.wivrn;
|
||||
|
||||
public class NetworkInfoCallback extends android.net.ConnectivityManager.NetworkCallback
|
||||
{
|
||||
@Override
|
||||
public native void onAvailable(android.net.Network network);
|
||||
|
||||
@Override
|
||||
public native void onBlockedStatusChanged(android.net.Network network, boolean blocked);
|
||||
|
||||
@Override
|
||||
public native void onCapabilitiesChanged(android.net.Network network, android.net.NetworkCapabilities caps);
|
||||
|
||||
@Override
|
||||
public native void onLinkPropertiesChanged(android.net.Network network, android.net.LinkProperties props);
|
||||
|
||||
@Override
|
||||
public native void onLosing(android.net.Network network, int maxMsToLive);
|
||||
|
||||
@Override
|
||||
public native void onLost(android.net.Network network);
|
||||
|
||||
@Override
|
||||
public native void onUnavailable();
|
||||
}
|
||||
|
||||
+14
-7
@@ -65,7 +65,7 @@ void libcurl::curl_thread_fn()
|
||||
{
|
||||
#ifdef __ANDROID__
|
||||
// For Android, read all the certificates at start-up, the file names are not
|
||||
// in the correct format for the current verion of OpenSSL.
|
||||
// in the correct format for the current version of OpenSSL.
|
||||
// See https://stackoverflow.com/questions/25253823/how-to-make-ssl-peer-verify-work-on-android
|
||||
std::string ca_bundle;
|
||||
for (const std::filesystem::directory_entry & entry: std::filesystem::directory_iterator{"/system/etc/security/cacerts"})
|
||||
@@ -158,8 +158,10 @@ void libcurl::curl_thread_fn()
|
||||
|
||||
if (msg->data.result == CURLE_OK)
|
||||
{
|
||||
xfer.current_state = state::done;
|
||||
xfer.finish();
|
||||
if (xfer.finish())
|
||||
xfer.current_state = state::done;
|
||||
else
|
||||
xfer.current_state = state::error;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -299,17 +301,21 @@ size_t libcurl::transfer_file::write(void * data, size_t size) noexcept
|
||||
return size;
|
||||
}
|
||||
|
||||
void libcurl::transfer_file::finish() noexcept
|
||||
bool libcurl::transfer_file::finish() noexcept
|
||||
{
|
||||
stream.close();
|
||||
std::filesystem::rename(temporary_path, final_path);
|
||||
std::error_code ec{};
|
||||
std::filesystem::rename(temporary_path, final_path, ec);
|
||||
if (ec)
|
||||
return false;
|
||||
|
||||
curl_off_t remote_timestamp;
|
||||
if (curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &remote_timestamp) == CURLE_OK)
|
||||
{
|
||||
auto time = std::chrono::file_clock::from_sys(std::chrono::system_clock::from_time_t(remote_timestamp));
|
||||
std::filesystem::last_write_time(final_path, time);
|
||||
std::filesystem::last_write_time(final_path, time, ec); // ignore errors
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void libcurl::transfer_file::cancel() noexcept
|
||||
@@ -343,8 +349,9 @@ size_t libcurl::transfer_buffer::write(void * data, size_t size) noexcept
|
||||
return size;
|
||||
}
|
||||
|
||||
void libcurl::transfer_buffer::finish() noexcept
|
||||
bool libcurl::transfer_buffer::finish() noexcept
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void libcurl::transfer_buffer::cancel() noexcept
|
||||
|
||||
+3
-3
@@ -69,7 +69,7 @@ private:
|
||||
virtual ~transfer();
|
||||
|
||||
virtual size_t write(void * data, size_t size) noexcept = 0;
|
||||
virtual void finish() noexcept = 0;
|
||||
virtual bool finish() noexcept = 0;
|
||||
virtual void cancel() noexcept = 0;
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ private:
|
||||
std::fstream stream;
|
||||
|
||||
size_t write(void * data, size_t size) noexcept override;
|
||||
void finish() noexcept override;
|
||||
bool finish() noexcept override;
|
||||
void cancel() noexcept override;
|
||||
};
|
||||
|
||||
@@ -93,7 +93,7 @@ private:
|
||||
std::string buffer;
|
||||
|
||||
size_t write(void * data, size_t size) noexcept override;
|
||||
void finish() noexcept override;
|
||||
bool finish() noexcept override;
|
||||
void cancel() noexcept override;
|
||||
};
|
||||
|
||||
|
||||
@@ -89,7 +89,6 @@ void real_main()
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
void android_main(android_app * native_app) __attribute__((visibility("default")));
|
||||
void android_main(android_app * native_app)
|
||||
{
|
||||
static auto logger = spdlog::android_logger_mt("WiVRn", "WiVRn");
|
||||
|
||||
+69
-126
@@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "imgui_impl.h"
|
||||
#include "implot.h"
|
||||
|
||||
@@ -24,6 +23,7 @@
|
||||
#include "constants.h"
|
||||
#include "image_loader.h"
|
||||
#include "openxr/openxr.h"
|
||||
#include "ui_theme.h"
|
||||
#include "utils/mapped_file.h"
|
||||
#include "utils/ranges.h"
|
||||
#include "utils/strings.h"
|
||||
@@ -182,7 +182,7 @@ static float distance_to_window(ImGuiWindow * window, ImVec2 position)
|
||||
static const std::array layout_bindings = {
|
||||
vk::DescriptorSetLayoutBinding{
|
||||
.binding = 0,
|
||||
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
|
||||
.descriptorType = vk::DescriptorType::eSampledImage,
|
||||
.descriptorCount = 1,
|
||||
.stageFlags = vk::ShaderStageFlagBits::eFragment,
|
||||
}};
|
||||
@@ -535,11 +535,13 @@ void imgui_context::initialize_fonts()
|
||||
}
|
||||
}
|
||||
|
||||
utils::mapped_file font_awesome_regular("assets://Font Awesome 6 Free-Regular-400.otf");
|
||||
utils::mapped_file font_awesome_solid("assets://Font Awesome 6 Free-Solid-900.otf");
|
||||
assert(font_awesome.empty());
|
||||
font_awesome.emplace_back("assets://Font Awesome 7 Free-Regular-400.otf");
|
||||
font_awesome.emplace_back("assets://Font Awesome 7 Free-Solid-900.otf");
|
||||
font_awesome.emplace_back("assets://Font Awesome 7 Brands-Regular-400.otf");
|
||||
|
||||
ImFontConfig config;
|
||||
config.FontDataOwnedByAtlas = false;
|
||||
config.FontDataOwnedByAtlas = true;
|
||||
|
||||
for (auto & font: fonts)
|
||||
{
|
||||
@@ -548,10 +550,11 @@ void imgui_context::initialize_fonts()
|
||||
config.MergeMode = true;
|
||||
}
|
||||
|
||||
config.FontDataOwnedByAtlas = false;
|
||||
config.MergeMode = true;
|
||||
config.GlyphMinAdvanceX = 40; // Use if you want to make the icon monospaced
|
||||
io.Fonts->AddFontFromMemoryTTF(const_cast<std::byte *>(font_awesome_regular.data()), font_awesome_regular.size(), constants::gui::font_size_small, &config);
|
||||
io.Fonts->AddFontFromMemoryTTF(const_cast<std::byte *>(font_awesome_solid.data()), font_awesome_solid.size(), constants::gui::font_size_small, &config);
|
||||
for (auto & fa: font_awesome)
|
||||
io.Fonts->AddFontFromMemoryTTF(const_cast<std::byte *>(fa.data()), fa.size(), constants::gui::font_size_small, &config);
|
||||
}
|
||||
|
||||
std::vector<imgui_context::controller_state> imgui_context::read_controllers_state(XrTime display_time)
|
||||
@@ -933,6 +936,28 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
|
||||
}
|
||||
}
|
||||
|
||||
if (auto modal_popup = ImGui::GetTopMostAndVisiblePopupModal(); modal_popup != nullptr)
|
||||
{
|
||||
ImDrawList * draw_list = ImGui::GetForegroundDrawList();
|
||||
for (ImGuiWindow * window: context->Windows)
|
||||
{
|
||||
if (window == modal_popup or window->ParentWindow != nullptr or not window->Active or window->Hidden or window->IsFallbackWindow)
|
||||
continue;
|
||||
|
||||
static const auto virtual_keyboard_id = ImHashStr("VirtualKeyboard");
|
||||
if (window->ID == virtual_keyboard_id)
|
||||
continue;
|
||||
|
||||
ImRect window_rect{
|
||||
window->Pos.x,
|
||||
window->Pos.y,
|
||||
window->Pos.x + window->Size.x,
|
||||
window->Pos.y + window->Size.y};
|
||||
|
||||
draw_list->AddRectFilled(window_rect.Min, window_rect.Max, ImGui::ColorConvertFloat4ToU32(wivrn::ui::current().dimming), window->WindowRounding);
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::Render();
|
||||
|
||||
current_command_buffer = (current_command_buffer + 1) % command_buffers.size();
|
||||
@@ -1147,12 +1172,12 @@ imgui_context::~imgui_context()
|
||||
ImGui::DestroyContext(context);
|
||||
}
|
||||
|
||||
ImTextureID imgui_textures::load_texture(const std::string & filename, vk::raii::Sampler && sampler)
|
||||
ImTextureID imgui_textures::load_texture(const std::string & filename)
|
||||
{
|
||||
return load_texture(utils::mapped_file{filename}, std::move(sampler), filename);
|
||||
return load_texture(utils::mapped_file{filename}, filename);
|
||||
}
|
||||
|
||||
ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler, const std::string & name)
|
||||
ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & bytes, const std::string & name)
|
||||
{
|
||||
bool srgb = true;
|
||||
|
||||
@@ -1165,7 +1190,6 @@ ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & byte
|
||||
std::shared_ptr<vk::raii::DescriptorSet> ds = descriptor_pool.allocate();
|
||||
|
||||
vk::DescriptorImageInfo image_info{
|
||||
.sampler = *sampler,
|
||||
.imageView = *image->image_view,
|
||||
.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
|
||||
};
|
||||
@@ -1173,7 +1197,7 @@ ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & byte
|
||||
vk::WriteDescriptorSet ds_write{
|
||||
.dstSet = **ds,
|
||||
.descriptorCount = 1,
|
||||
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
|
||||
.descriptorType = vk::DescriptorType::eSampledImage,
|
||||
.pImageInfo = &image_info};
|
||||
|
||||
device.updateDescriptorSets(ds_write, nullptr);
|
||||
@@ -1183,7 +1207,6 @@ ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & byte
|
||||
textures.emplace(
|
||||
id,
|
||||
texture_data{
|
||||
.sampler = std::move(sampler),
|
||||
.image = image,
|
||||
.descriptor_set = std::move(ds),
|
||||
});
|
||||
@@ -1191,43 +1214,6 @@ ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & byte
|
||||
return id;
|
||||
}
|
||||
|
||||
ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & bytes, const std::string & name)
|
||||
{
|
||||
return load_texture(
|
||||
bytes,
|
||||
vk::raii::Sampler{
|
||||
device,
|
||||
vk::SamplerCreateInfo{
|
||||
.magFilter = vk::Filter::eLinear,
|
||||
.minFilter = vk::Filter::eLinear,
|
||||
.mipmapMode = vk::SamplerMipmapMode::eLinear,
|
||||
.addressModeU = vk::SamplerAddressMode::eClampToEdge,
|
||||
.addressModeV = vk::SamplerAddressMode::eClampToEdge,
|
||||
.addressModeW = vk::SamplerAddressMode::eClampToEdge,
|
||||
.borderColor = vk::BorderColor::eFloatTransparentBlack,
|
||||
},
|
||||
},
|
||||
name);
|
||||
}
|
||||
|
||||
ImTextureID imgui_textures::load_texture(const std::string & filename)
|
||||
{
|
||||
return load_texture(
|
||||
filename,
|
||||
vk::raii::Sampler{
|
||||
device,
|
||||
vk::SamplerCreateInfo{
|
||||
.magFilter = vk::Filter::eLinear,
|
||||
.minFilter = vk::Filter::eLinear,
|
||||
.mipmapMode = vk::SamplerMipmapMode::eLinear,
|
||||
.addressModeU = vk::SamplerAddressMode::eClampToEdge,
|
||||
.addressModeV = vk::SamplerAddressMode::eClampToEdge,
|
||||
.addressModeW = vk::SamplerAddressMode::eClampToEdge,
|
||||
.borderColor = vk::BorderColor::eFloatTransparentBlack,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
void imgui_textures::free_texture(ImTextureID texture)
|
||||
{
|
||||
textures.erase(texture);
|
||||
@@ -1244,11 +1230,6 @@ void imgui_context::set_controllers_enabled(bool value)
|
||||
controllers_enabled = value;
|
||||
}
|
||||
|
||||
bool imgui_context::is_modal_popup_shown() const
|
||||
{
|
||||
return ImGui::GetTopMostAndVisiblePopupModal() != nullptr;
|
||||
}
|
||||
|
||||
imgui_context::viewport & imgui_context::layer(ImVec2 position)
|
||||
{
|
||||
for (auto & layer: layers_)
|
||||
@@ -1260,30 +1241,42 @@ imgui_context::viewport & imgui_context::layer(ImVec2 position)
|
||||
return layers_.front();
|
||||
}
|
||||
|
||||
void imgui_context::tooltip(std::string_view text)
|
||||
void imgui_context::place_layer_relative(size_t layer, size_t base, glm::vec3 offset, glm::quat extra_rotation)
|
||||
{
|
||||
const viewport & b = layers_[base];
|
||||
viewport & l = layers_[layer];
|
||||
l.orientation = b.orientation * extra_rotation;
|
||||
l.position = b.position + glm::mat3_cast(b.orientation) * offset;
|
||||
}
|
||||
|
||||
void imgui_context::tooltip(std::string_view text, std::optional<ImVec2> anchor)
|
||||
{
|
||||
// FIXME: this is incorrect if we use the docking branch of imgui
|
||||
ImGuiViewport * viewport = ImGui::GetMainViewport();
|
||||
auto & current_layer = layer(ImGui::GetMousePos());
|
||||
auto & current_layer = layer(anchor.value_or(ImGui::GetMousePos()));
|
||||
|
||||
assert(std::ranges::contains(layers_, true, &viewport::tooltip_viewport));
|
||||
auto & tooltip_layer = *std::ranges::find(layers_, true, &viewport::tooltip_viewport);
|
||||
|
||||
// Get the item position before drawing the tooltip (top center)
|
||||
ImVec2 item_position{
|
||||
// anchor above the given display point, or above the last item's rect (top center)
|
||||
ImVec2 item_position = anchor.value_or(ImVec2{
|
||||
(ImGui::GetItemRectMin().x + ImGui::GetItemRectMax().x) / 2,
|
||||
ImGui::GetItemRectMin().y,
|
||||
};
|
||||
});
|
||||
|
||||
auto pos_backup = viewport->Pos;
|
||||
auto size_backup = viewport->Size;
|
||||
viewport->Pos = ImVec2(tooltip_layer.vp_origin.x, tooltip_layer.vp_origin.y);
|
||||
viewport->Size = ImVec2(tooltip_layer.vp_size.x, tooltip_layer.vp_size.y);
|
||||
|
||||
// Draw the tooltip in the tooltip layer
|
||||
// Draw the tooltip in the tooltip layer, themed
|
||||
// Clamp position to avoid overflowing on the left or the right
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, constants::style::tooltip_padding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::tooltip_rounding);
|
||||
const wivrn::ui::theme & t = wivrn::ui::current();
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, wivrn::ui::metrics::tooltip_padding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, t.card_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, t.border_size);
|
||||
ImGui::PushStyleColor(ImGuiCol_PopupBg, t.card);
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, t.border);
|
||||
|
||||
auto & style = ImGui::GetStyle();
|
||||
const ImVec2 text_size = ImGui::CalcTextSize(text.data(), text.data() + text.size(), true);
|
||||
@@ -1293,12 +1286,13 @@ void imgui_context::tooltip(std::string_view text)
|
||||
ImGui::SetNextWindowSizeConstraints({0, 0}, viewport->Size);
|
||||
if (ImGui::BeginTooltip())
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, 0xffffffff);
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, t.col(t.text));
|
||||
ImGui::TextUnformatted(text.data(), text.data() + text.size());
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
ImGui::PopStyleVar(2);
|
||||
ImGui::PopStyleColor(2);
|
||||
ImGui::PopStyleVar(3);
|
||||
|
||||
viewport->Pos = pos_backup;
|
||||
viewport->Size = size_backup;
|
||||
@@ -1308,7 +1302,7 @@ void imgui_context::tooltip(std::string_view text)
|
||||
auto M = glm::mat3_cast(tooltip_orientation);
|
||||
|
||||
float pixel_size = current_layer.size.y / current_layer.vp_size.y;
|
||||
glm::vec3 tooltip_position_centre = rw_from_vp(item_position) + M * (glm::vec3(0, tooltip_size.y / 2, 0) * pixel_size + constants::style::tooltip_distance);
|
||||
glm::vec3 tooltip_position_centre = rw_from_vp(item_position) + M * (glm::vec3(0, tooltip_size.y / 2, 0) * pixel_size + constants::gui::tooltip_distance);
|
||||
|
||||
// Position the tooltip layer
|
||||
tooltip_layer.position = tooltip_position_centre;
|
||||
@@ -1329,9 +1323,15 @@ void ScrollWhenDragging()
|
||||
static int active_id;
|
||||
static ImVec2 cumulated_delta;
|
||||
|
||||
// don't drag while a popup is open or just closed: the ray snaps back and synthesises a click
|
||||
static bool popup_was_open;
|
||||
const bool popup_open = ImGui::IsPopupOpen(nullptr, ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel);
|
||||
|
||||
bool HoveredIdAllowOverlap_backup = std::exchange(g.HoveredIdAllowOverlap, true);
|
||||
bool ActiveIdAllowOverlap_backup = std::exchange(g.ActiveIdAllowOverlap, true);
|
||||
if (active_id == 0 and ImGui::ItemHoverable(window->Rect(), 0, g.CurrentItemFlags) and ImGui::IsMouseClicked(mouse_button, ImGuiInputFlags_None, /*id*/ ImGuiKeyOwner_Any))
|
||||
// start only over this window or a child card, and only with no active widget
|
||||
const bool over = ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows);
|
||||
if (active_id == 0 and g.ActiveId == 0 and not popup_open and not popup_was_open and over and ImGui::IsMouseClicked(mouse_button, ImGuiInputFlags_None, /*id*/ ImGuiKeyOwner_Any))
|
||||
{
|
||||
active_id = id;
|
||||
|
||||
@@ -1357,6 +1357,8 @@ void ScrollWhenDragging()
|
||||
|
||||
g.HoveredIdAllowOverlap = HoveredIdAllowOverlap_backup;
|
||||
g.ActiveIdAllowOverlap = ActiveIdAllowOverlap_backup;
|
||||
|
||||
popup_was_open = popup_open;
|
||||
}
|
||||
|
||||
void CenterTextH(const std::string & text)
|
||||
@@ -1397,62 +1399,3 @@ void CenterTextHV(const std::string & text)
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
||||
void InputText(const char * label, std::string & text, const ImVec2 & size, ImGuiInputTextFlags flags)
|
||||
{
|
||||
auto callback = [](ImGuiInputTextCallbackData * data) -> int {
|
||||
std::string & text = *reinterpret_cast<std::string *>(data->UserData);
|
||||
|
||||
if (data->EventFlag == ImGuiInputTextFlags_CallbackResize)
|
||||
{
|
||||
assert(text.data() == data->Buf);
|
||||
text.resize(data->BufTextLen);
|
||||
data->Buf = text.data();
|
||||
}
|
||||
|
||||
return 0;
|
||||
};
|
||||
|
||||
ImGui::InputTextEx(label, nullptr, text.data(), text.size() + 1, size, flags | ImGuiInputTextFlags_CallbackResize, callback, &text);
|
||||
}
|
||||
|
||||
bool RadioButtonWithoutCheckBox(const std::string & label, bool active, ImVec2 size_arg)
|
||||
{
|
||||
ImGuiWindow * window = ImGui::GetCurrentWindow();
|
||||
if (window->SkipItems)
|
||||
return false;
|
||||
|
||||
ImGuiContext & g = *GImGui;
|
||||
const ImGuiStyle & style = g.Style;
|
||||
const ImGuiID id = window->GetID(label.c_str());
|
||||
const ImVec2 label_size = ImGui::CalcTextSize(label.c_str(), NULL, true);
|
||||
|
||||
const ImVec2 pos = window->DC.CursorPos;
|
||||
|
||||
ImVec2 size = ImGui::CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f);
|
||||
|
||||
const ImRect bb(pos, pos + size);
|
||||
ImGui::ItemSize(bb, style.FramePadding.y);
|
||||
if (!ImGui::ItemAdd(bb, id))
|
||||
return false;
|
||||
|
||||
bool hovered, held;
|
||||
bool pressed = ImGui::ButtonBehavior(bb, id, &hovered, &held);
|
||||
|
||||
ImGuiCol_ col;
|
||||
if ((held && hovered) || active)
|
||||
col = ImGuiCol_ButtonActive;
|
||||
else if (hovered)
|
||||
col = ImGuiCol_ButtonHovered;
|
||||
else
|
||||
col = ImGuiCol_Button;
|
||||
|
||||
ImGui::RenderNavHighlight(bb, id);
|
||||
ImGui::RenderFrame(bb.Min, bb.Max, ImGui::GetColorU32(col), true, style.FrameRounding);
|
||||
|
||||
ImVec2 TextAlign{0, 0.5f};
|
||||
ImGui::RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label.c_str(), NULL, &label_size, TextAlign, &bb);
|
||||
|
||||
IMGUI_TEST_ENGINE_ITEM_INFO(id, label.c_str(), g.LastItemData.StatusFlags);
|
||||
return pressed;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "image_loader.h"
|
||||
#include "render/growable_descriptor_pool.h"
|
||||
#include "utils/cache.h"
|
||||
#include "utils/mapped_file.h"
|
||||
#include "utils/thread_safe.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "xr/hand_tracker.h"
|
||||
@@ -30,6 +31,7 @@
|
||||
#include <glm/gtc/quaternion.hpp>
|
||||
#include <imgui.h>
|
||||
#include <implot.h>
|
||||
#include <inplace_vector.hpp>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <unordered_map>
|
||||
@@ -42,7 +44,6 @@ class imgui_textures
|
||||
{
|
||||
struct texture_data
|
||||
{
|
||||
vk::raii::Sampler sampler;
|
||||
std::shared_ptr<loaded_image> image;
|
||||
std::shared_ptr<vk::raii::DescriptorSet> descriptor_set;
|
||||
};
|
||||
@@ -69,9 +70,7 @@ public:
|
||||
thread_safe<vk::raii::Queue> & queue,
|
||||
std::shared_ptr<image_cache_type> image_cache = {});
|
||||
~imgui_textures();
|
||||
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::string & filename);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler, const std::string & name = "");
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, const std::string & name = "");
|
||||
void free_texture(ImTextureID);
|
||||
};
|
||||
@@ -203,6 +202,7 @@ private:
|
||||
bool show_demo_window = true;
|
||||
#endif
|
||||
|
||||
beman::inplace_vector::inplace_vector<utils::mapped_file, 3> font_awesome;
|
||||
void initialize_fonts();
|
||||
|
||||
std::vector<controller_state> read_controllers_state(XrTime display_time);
|
||||
@@ -226,6 +226,9 @@ public:
|
||||
return layers_;
|
||||
}
|
||||
|
||||
// place a satellite layer at base orientation (optionally post-rotated), offset in the base's local frame
|
||||
void place_layer_relative(size_t layer, size_t base, glm::vec3 offset, glm::quat extra_rotation = glm::quat(1, 0, 0, 0));
|
||||
|
||||
std::vector<window_viewport> windows();
|
||||
|
||||
viewport & layer(ImVec2 position);
|
||||
@@ -246,12 +249,11 @@ public:
|
||||
|
||||
void set_current();
|
||||
|
||||
bool is_modal_popup_shown() const;
|
||||
|
||||
void vibrate_on_hover();
|
||||
void set_hovered_item();
|
||||
void set_controllers_enabled(bool value);
|
||||
void tooltip(std::string_view text);
|
||||
// anchor, if set, positions the tooltip above that display point instead of above the last item's rect
|
||||
void tooltip(std::string_view text, std::optional<ImVec2> anchor = std::nullopt);
|
||||
std::array<bool, 2> is_aim_interaction() const
|
||||
{
|
||||
return {aim_interaction[0] == 1, aim_interaction[1] == 1};
|
||||
@@ -263,16 +265,3 @@ void ScrollWhenDragging();
|
||||
void CenterTextH(const std::string & text);
|
||||
|
||||
void CenterTextHV(const std::string & text);
|
||||
|
||||
void InputText(const char * label, std::string & text, const ImVec2 & size, ImGuiInputTextFlags flags);
|
||||
|
||||
bool RadioButtonWithoutCheckBox(const std::string & label, bool active, ImVec2 size_arg);
|
||||
|
||||
template <typename T, typename U>
|
||||
static bool RadioButtonWithoutCheckBox(const std::string & label, T & v, U v_button, ImVec2 size_arg)
|
||||
{
|
||||
const bool pressed = RadioButtonWithoutCheckBox(label, v == v_button, size_arg);
|
||||
if (pressed)
|
||||
v = v_button;
|
||||
return pressed;
|
||||
}
|
||||
|
||||
@@ -1002,7 +1002,7 @@ void scene_renderer::render(
|
||||
return false;
|
||||
|
||||
// If blending is disabled (std::get<0> == false), put the closest objects first
|
||||
// If blending is enabled (std::get<0> == true), put the farthest objeccts first
|
||||
// If blending is enabled (std::get<0> == true), put the farthest objects first
|
||||
return std::get<0>(a) ^ (std::get<1>(a) > std::get<1>(b));
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "ui_theme.h"
|
||||
#include "utils/i18n.h"
|
||||
|
||||
namespace wivrn::ui
|
||||
{
|
||||
|
||||
static ImVec4 rgb(int r, int g, int b, float a = 1)
|
||||
{
|
||||
return {r / 255.f, g / 255.f, b / 255.f, a};
|
||||
}
|
||||
|
||||
static theme dark_default()
|
||||
{
|
||||
theme t;
|
||||
t.name = "Dark";
|
||||
t.localized_name = _C("theme name", "Dark");
|
||||
|
||||
t.accent = rgb(30, 115, 255);
|
||||
t.accent_hovered = rgb(64, 140, 255);
|
||||
t.accent_active = rgb(18, 95, 228);
|
||||
t.on_accent = rgb(255, 255, 255);
|
||||
|
||||
t.background = rgb(10, 11, 13);
|
||||
t.card = rgb(22, 24, 29);
|
||||
t.card_hovered = rgb(28, 30, 36);
|
||||
t.control = rgb(35, 38, 46);
|
||||
t.control_hovered = rgb(44, 48, 57);
|
||||
t.control_active = rgb(52, 57, 68);
|
||||
|
||||
t.text = rgb(244, 245, 248);
|
||||
t.text_muted = rgb(150, 156, 167);
|
||||
t.border = rgb(40, 43, 51);
|
||||
|
||||
t.danger = rgb(239, 68, 68);
|
||||
t.danger_hovered = rgb(248, 96, 96);
|
||||
t.success = rgb(52, 199, 123);
|
||||
t.warning = rgb(249, 115, 6);
|
||||
|
||||
t.dimming = rgb(128, 128, 128, 0.5f);
|
||||
|
||||
t.rounding = 8;
|
||||
t.card_rounding = 14;
|
||||
t.border_size = 1;
|
||||
t.font_scale = 1.0; // user multiplier, 100% maps to metrics::font_base
|
||||
return t;
|
||||
}
|
||||
|
||||
static theme midnight()
|
||||
{
|
||||
theme t = dark_default();
|
||||
t.name = "Midnight";
|
||||
t.localized_name = _C("theme name", "Midnight");
|
||||
t.background = rgb(6, 8, 16);
|
||||
t.card = rgb(16, 20, 34);
|
||||
t.card_hovered = rgb(22, 27, 44);
|
||||
t.control = rgb(28, 34, 54);
|
||||
t.control_hovered = rgb(36, 43, 66);
|
||||
t.control_active = rgb(44, 52, 78);
|
||||
t.border = rgb(30, 37, 58);
|
||||
return t;
|
||||
}
|
||||
|
||||
static theme slate_light()
|
||||
{
|
||||
theme t = dark_default();
|
||||
t.name = "Slate";
|
||||
t.localized_name = _C("theme name", "Slate");
|
||||
t.background = rgb(28, 30, 36);
|
||||
t.card = rgb(38, 41, 49);
|
||||
t.card_hovered = rgb(46, 50, 60);
|
||||
t.control = rgb(54, 59, 70);
|
||||
t.control_hovered = rgb(64, 70, 83);
|
||||
t.control_active = rgb(74, 81, 96);
|
||||
t.text = rgb(236, 238, 242);
|
||||
t.text_muted = rgb(168, 174, 186);
|
||||
t.border = rgb(58, 63, 75);
|
||||
return t;
|
||||
}
|
||||
|
||||
// True black, ideal for OLED panels
|
||||
static theme oled()
|
||||
{
|
||||
theme t = dark_default();
|
||||
t.name = "OLED";
|
||||
t.localized_name = _C("theme name", "OLED");
|
||||
t.background = rgb(0, 0, 0);
|
||||
t.card = rgb(6, 6, 8);
|
||||
t.card_hovered = rgb(11, 12, 14);
|
||||
t.control = rgb(22, 24, 28);
|
||||
t.control_hovered = rgb(30, 32, 38);
|
||||
t.control_active = rgb(40, 43, 50);
|
||||
t.border = rgb(26, 28, 33);
|
||||
return t;
|
||||
}
|
||||
|
||||
// Neutral dark gray
|
||||
static theme graphite()
|
||||
{
|
||||
theme t = dark_default();
|
||||
t.name = "Graphite";
|
||||
t.localized_name = _C("theme name", "Graphite");
|
||||
t.background = rgb(20, 21, 23);
|
||||
t.card = rgb(31, 33, 36);
|
||||
t.card_hovered = rgb(39, 41, 45);
|
||||
t.control = rgb(48, 51, 56);
|
||||
t.control_hovered = rgb(58, 62, 68);
|
||||
t.control_active = rgb(68, 72, 80);
|
||||
t.text = rgb(238, 240, 243);
|
||||
t.text_muted = rgb(160, 164, 172);
|
||||
t.border = rgb(50, 53, 59);
|
||||
return t;
|
||||
}
|
||||
|
||||
// Light surfaces, dark text
|
||||
static theme light()
|
||||
{
|
||||
theme t = dark_default();
|
||||
t.name = "Light";
|
||||
t.localized_name = _C("theme name", "Light");
|
||||
t.background = rgb(188, 193, 202);
|
||||
t.card = rgb(252, 252, 253);
|
||||
t.card_hovered = rgb(242, 243, 246);
|
||||
t.control = rgb(206, 210, 219);
|
||||
t.control_hovered = rgb(193, 198, 208);
|
||||
t.control_active = rgb(178, 184, 196);
|
||||
t.text = rgb(14, 16, 20);
|
||||
t.text_muted = rgb(66, 72, 84);
|
||||
t.border = rgb(176, 182, 194);
|
||||
t.success = rgb(36, 147, 90);
|
||||
return t;
|
||||
}
|
||||
|
||||
std::vector<theme> presets()
|
||||
{
|
||||
return {oled(), dark_default(), midnight(), graphite(), slate_light(), light()};
|
||||
}
|
||||
|
||||
std::vector<accent_swatch> accent_swatches()
|
||||
{
|
||||
return {
|
||||
{"Blue", rgb(30, 115, 255), rgb(64, 140, 255), rgb(18, 95, 228)},
|
||||
{"Violet", rgb(132, 72, 255), rgb(152, 98, 255), rgb(112, 52, 232)},
|
||||
{"Emerald", rgb(0, 200, 132), rgb(28, 214, 150), rgb(0, 172, 112)},
|
||||
{"Amber", rgb(255, 160, 0), rgb(255, 176, 36), rgb(228, 140, 0)},
|
||||
{"Rose", rgb(255, 40, 82), rgb(255, 74, 108), rgb(230, 28, 68)},
|
||||
{"Cyan", rgb(0, 190, 225), rgb(34, 205, 236), rgb(0, 168, 200)},
|
||||
};
|
||||
}
|
||||
|
||||
void set_accent(const accent_swatch & swatch)
|
||||
{
|
||||
theme & t = current();
|
||||
t.accent = swatch.base;
|
||||
t.accent_hovered = swatch.hovered;
|
||||
t.accent_active = swatch.active;
|
||||
}
|
||||
|
||||
theme & current()
|
||||
{
|
||||
static theme t = dark_default();
|
||||
return t;
|
||||
}
|
||||
|
||||
void set_theme(const theme & t)
|
||||
{
|
||||
current() = t;
|
||||
}
|
||||
|
||||
float & background_alpha()
|
||||
{
|
||||
static float alpha = 0.75f; // translucent panels by default
|
||||
return alpha;
|
||||
}
|
||||
|
||||
void theme::apply() const
|
||||
{
|
||||
ImGuiStyle & style = ImGui::GetStyle();
|
||||
|
||||
style.FontScaleMain = font_scale;
|
||||
style.WindowRounding = card_rounding;
|
||||
style.ChildRounding = card_rounding;
|
||||
style.PopupRounding = card_rounding;
|
||||
style.FrameRounding = rounding;
|
||||
style.GrabRounding = rounding;
|
||||
style.TabRounding = rounding;
|
||||
style.FrameBorderSize = border_size;
|
||||
style.WindowBorderSize = border_size;
|
||||
|
||||
ImVec4 * c = style.Colors;
|
||||
c[ImGuiCol_Text] = text;
|
||||
c[ImGuiCol_TextDisabled] = text_muted;
|
||||
c[ImGuiCol_WindowBg] = background;
|
||||
c[ImGuiCol_ChildBg] = card;
|
||||
c[ImGuiCol_PopupBg] = card;
|
||||
c[ImGuiCol_Border] = border;
|
||||
c[ImGuiCol_FrameBg] = control;
|
||||
c[ImGuiCol_FrameBgHovered] = control_hovered;
|
||||
c[ImGuiCol_FrameBgActive] = control_active;
|
||||
c[ImGuiCol_Button] = control;
|
||||
c[ImGuiCol_ButtonHovered] = control_hovered;
|
||||
c[ImGuiCol_ButtonActive] = accent;
|
||||
c[ImGuiCol_Header] = control_hovered;
|
||||
c[ImGuiCol_HeaderHovered] = control_hovered;
|
||||
c[ImGuiCol_HeaderActive] = accent;
|
||||
c[ImGuiCol_SliderGrab] = accent;
|
||||
c[ImGuiCol_SliderGrabActive] = accent_active;
|
||||
c[ImGuiCol_CheckMark] = accent;
|
||||
c[ImGuiCol_ScrollbarBg] = {0, 0, 0, 0};
|
||||
c[ImGuiCol_ScrollbarGrab] = control;
|
||||
c[ImGuiCol_ScrollbarGrabHovered] = control_hovered;
|
||||
c[ImGuiCol_ScrollbarGrabActive] = control_active;
|
||||
c[ImGuiCol_Separator] = border;
|
||||
}
|
||||
|
||||
} // namespace wivrn::ui
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <imgui.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace wivrn::ui
|
||||
{
|
||||
|
||||
struct theme
|
||||
{
|
||||
std::string name;
|
||||
std::string localized_name;
|
||||
|
||||
// Accent
|
||||
ImVec4 accent;
|
||||
ImVec4 accent_hovered;
|
||||
ImVec4 accent_active;
|
||||
ImVec4 on_accent; // text/icon on an accent fill
|
||||
|
||||
// Surfaces, back to front
|
||||
ImVec4 background;
|
||||
ImVec4 card;
|
||||
ImVec4 card_hovered;
|
||||
ImVec4 control; // slider rail, secondary button, input
|
||||
ImVec4 control_hovered;
|
||||
ImVec4 control_active;
|
||||
|
||||
// Content
|
||||
ImVec4 text;
|
||||
ImVec4 text_muted;
|
||||
ImVec4 border;
|
||||
|
||||
// Semantic
|
||||
ImVec4 danger;
|
||||
ImVec4 danger_hovered;
|
||||
ImVec4 success;
|
||||
ImVec4 warning;
|
||||
|
||||
// Dimming when a modal popup is visible
|
||||
ImVec4 dimming;
|
||||
|
||||
// Shape, in pixels
|
||||
float rounding; // buttons, inputs, sliders
|
||||
float card_rounding; // cards
|
||||
float border_size;
|
||||
|
||||
float font_scale; // global text size multiplier
|
||||
|
||||
// packed color with the current global alpha applied, so draw-list widgets dim with BeginDisabled()
|
||||
ImU32 col(const ImVec4 & c) const
|
||||
{
|
||||
ImVec4 v = c;
|
||||
v.w *= ImGui::GetStyle().Alpha;
|
||||
return ImGui::ColorConvertFloat4ToU32(v);
|
||||
}
|
||||
|
||||
// push colors and metrics into the global ImGui style
|
||||
void apply() const;
|
||||
};
|
||||
|
||||
// fixed design tokens shared by the widgets
|
||||
namespace metrics
|
||||
{
|
||||
constexpr float font_base = 0.765; // user-facing 100% text scale
|
||||
constexpr float font_title = 1.7; // page header, x base font size
|
||||
constexpr float font_description = 0.82; // muted secondary text, x base font size
|
||||
|
||||
constexpr ImVec2 button_padding = {26, 14};
|
||||
constexpr ImVec2 card_padding = {28, 22}; // regular cards
|
||||
constexpr ImVec2 list_card_padding = {18, 18}; // cards holding a list of rows
|
||||
|
||||
// shared height of every full-width control so they line up in a setting row, x frame height
|
||||
constexpr float control_height = 1.65;
|
||||
|
||||
constexpr float toggle_aspect = 1.9; // track width / height
|
||||
constexpr float toggle_knob_inset = 3; // gap between track edge and knob
|
||||
|
||||
constexpr float slider_grab_width = 14;
|
||||
|
||||
constexpr float segmented_inset = 3; // gap around the active segment
|
||||
|
||||
constexpr float icon_button_glyph = 0.58; // glyph height as a fraction of the button side
|
||||
constexpr float button_label_glyph = 1.35; // leading icon size in a labeled button, x base text size
|
||||
|
||||
constexpr float combo_row_height = 2.2; // x frame height, big touch rows in the modal
|
||||
constexpr float combo_chevron = 12; // chevron size in the closed box
|
||||
constexpr float combo_modal_min_width = 460; // popup never narrower than this
|
||||
constexpr ImVec2 combo_padding = {16, 0}; // horizontal inner padding of box and rows
|
||||
|
||||
constexpr float list_row_box = 52; // leading icon/thumbnail size in a list row
|
||||
constexpr float list_row_box_large = 80; // min thumbnail size for full-height list rows
|
||||
constexpr float list_row_pad = 12; // inner padding of a list row, both axes
|
||||
constexpr ImVec2 chip_padding = {12, 6}; // inner padding of a chip/badge
|
||||
constexpr float chip_pill_padding_x = 18; // roomier horizontal padding for top-bar pill chips
|
||||
constexpr float input_padding_x = 14; // horizontal text padding inside inputs
|
||||
constexpr float font_modal_title = 1.2; // modal heading, x base font size
|
||||
|
||||
constexpr float label_line_gap = 5; // title to description
|
||||
constexpr float label_bottom_pad = 6; // breathing room below the description
|
||||
constexpr float nav_section_gap = 18; // space above a sidebar section header
|
||||
|
||||
constexpr ImVec2 card_item_spacing = {12, 10}; // ItemSpacing pushed around a card section
|
||||
constexpr float setting_control_width = 480; // width of the control in a setting row
|
||||
|
||||
// application shell: top bar, sidebar, content panel, shared by lobby and in-stream window
|
||||
constexpr float sidebar_width = 300;
|
||||
constexpr float top_bar_height = 72;
|
||||
constexpr float content_margin = 20; // gap around the main content panel
|
||||
|
||||
// application launcher grid
|
||||
constexpr float app_icon_small = 120;
|
||||
constexpr float app_icon_medium = 176;
|
||||
constexpr float app_icon_large = 240;
|
||||
constexpr float app_tile_margin = 24; // horizontal slack each side of the icon in a tile
|
||||
constexpr float app_view_toggle_width = 150; // grid/list segmented control
|
||||
constexpr float app_size_toggle_width = 300; // small/medium/large segmented control
|
||||
constexpr float app_spinner_radius = 110; // app-starting spinner
|
||||
constexpr float app_spinner_thickness = 22;
|
||||
|
||||
// modal/popup windows not yet on the card system (first-run, confirm dialogs, loading popup)
|
||||
constexpr ImVec2 window_padding = {20, 20};
|
||||
constexpr float window_rounding = 10;
|
||||
constexpr float window_border_size = 2;
|
||||
|
||||
constexpr ImVec2 tooltip_padding = {16, 12}; // hover tooltip window padding
|
||||
constexpr ImVec2 button_size = {220, 80}; // big touch buttons in confirm dialogs
|
||||
|
||||
// PIN entry keypad
|
||||
constexpr ImVec2 pin_entry_key_size = {90, 70};
|
||||
constexpr ImVec2 pin_entry_item_spacing = {10, 10};
|
||||
constexpr float pin_entry_popup_width = 3 * pin_entry_key_size.x + 2 * pin_entry_item_spacing.x;
|
||||
} // namespace metrics
|
||||
|
||||
// theme in effect, call current().apply() after mutating
|
||||
theme & current();
|
||||
void set_theme(const theme & t);
|
||||
|
||||
// panel and card background opacity, 0..1, kept out of the presets so switching palette keeps it
|
||||
float & background_alpha();
|
||||
|
||||
std::vector<theme> presets();
|
||||
|
||||
struct accent_swatch
|
||||
{
|
||||
const char * name;
|
||||
ImVec4 base;
|
||||
ImVec4 hovered;
|
||||
ImVec4 active;
|
||||
};
|
||||
std::vector<accent_swatch> accent_swatches();
|
||||
void set_accent(const accent_swatch & swatch);
|
||||
|
||||
} // namespace wivrn::ui
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,199 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <imgui.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// Themed, reusable UI widgets, colors and metrics from wivrn::ui::current()
|
||||
// Display text takes const std::string &, ids and icon glyphs stay const char *
|
||||
namespace wivrn::ui
|
||||
{
|
||||
|
||||
enum class button_style
|
||||
{
|
||||
primary, // accent fill
|
||||
secondary, // control fill
|
||||
danger, // destructive
|
||||
ghost, // transparent until hovered
|
||||
};
|
||||
|
||||
// Page title with an optional muted subtitle
|
||||
void page_header(const std::string & title, const std::string & subtitle = {});
|
||||
|
||||
// Rounded panel, pair with end_card
|
||||
bool begin_card(const char * id, const ImVec2 & size = {0, 0});
|
||||
// Tighter padding, for cards holding a list of rows
|
||||
bool begin_list_card(const char * id);
|
||||
void end_card();
|
||||
|
||||
// Full-width divider between rows of a card
|
||||
void row_separator();
|
||||
|
||||
// Title and wrapped muted description on the left, control_width reserved on the right
|
||||
// Returns the window-local y of the label bottom, to keep the row tall enough for a multi-line label
|
||||
float setting_label(const std::string & title, const std::string & description, float control_width);
|
||||
|
||||
// "<icon> <label>" with the standard two-space gap
|
||||
std::string icon_label(const char * icon, const std::string & label);
|
||||
|
||||
// Auto-fit width of a button, as laid out when size.x is 0
|
||||
float button_width(const std::string & label);
|
||||
float button_width(const char * icon, const std::string & label);
|
||||
|
||||
// Footprint of a chip() with standard padding, no dot, no height override
|
||||
ImVec2 chip_size(const std::string & label);
|
||||
|
||||
// Exact layout width of a chip(), accounting for the optional dot and the height override padding
|
||||
float chip_width(const std::string & label, bool dot = false, float height = 0);
|
||||
|
||||
bool button(const std::string & label, button_style style = button_style::primary, const ImVec2 & size = {0, 0});
|
||||
// Same, with a larger leading icon glyph
|
||||
bool button(const char * icon, const std::string & label, button_style style = button_style::primary, const ImVec2 & size = {0, 0});
|
||||
// tooltip, if not empty, is shown while hovered
|
||||
bool icon_button(const char * icon, const ImVec2 & size = {0, 0}, bool active = false, const std::string & tooltip = {});
|
||||
|
||||
// Circular download-progress indicator with a centred cancel glyph
|
||||
// fraction in [0,1] draws a determinate ring, < 0 an indeterminate spinner
|
||||
// Returns true when cancel is clicked
|
||||
bool cancel_progress_button(const char * id, float fraction, const ImVec2 & size = {0, 0}, const std::string & tooltip = {});
|
||||
|
||||
bool toggle(const char * id, bool * v, const bool * default_value = nullptr);
|
||||
|
||||
// Width a trailing reset slot consumes, gap + square
|
||||
float reset_slot_width();
|
||||
|
||||
// The value controls below draw a reset button when the value differs from default_value
|
||||
bool slider_int(const char * id, int * v, int v_min, int v_max, const char * format, const ImVec2 & size = {0, 0}, const int * default_value = nullptr);
|
||||
|
||||
// Pill group, *selected is the index of the active option
|
||||
bool segmented(const char * id, const std::vector<std::string> & options, int * selected, const ImVec2 & size = {0, 0}, const int * default_value = nullptr);
|
||||
|
||||
struct combo_item
|
||||
{
|
||||
const char * name;
|
||||
const char * description = nullptr;
|
||||
};
|
||||
|
||||
// Combo box whose options open in a modal list, *selected is the chosen index, title labels the modal
|
||||
bool combo(const char * id, const std::string & title, const std::vector<combo_item> & items, int * selected, float width = 0, const int * default_value = nullptr);
|
||||
|
||||
// Combo box with multiple selection
|
||||
bool combo_multi(const char * id, const std::string & title, const std::string & preview, const std::vector<combo_item> & items, std::vector<char> * selected, float width, const std::vector<char> * default_value);
|
||||
|
||||
// Centre (display coords) where combo and begin_modal popups open, plus the popup-layer height
|
||||
// available_height of 0 leaves the list unbounded, set once per frame
|
||||
void set_popup_center(const ImVec2 & center, float available_height = 0);
|
||||
|
||||
// hover-haptic hook, fired after an interactive item
|
||||
void set_hover_haptic(std::function<void()> hook);
|
||||
|
||||
// tooltip hook for the last item
|
||||
void set_tooltip_hook(std::function<void(const char *)> hook);
|
||||
|
||||
enum class chip_style
|
||||
{
|
||||
neutral, // control fill, normal text
|
||||
muted, // control fill, muted text
|
||||
accent,
|
||||
success,
|
||||
warning,
|
||||
danger,
|
||||
};
|
||||
// Status badge, label may include a leading icon glyph, dot draws a status dot
|
||||
// height overrides the pill height, default sizes to text + padding
|
||||
void chip(const std::string & label, chip_style style = chip_style::neutral, bool dot = false, float height = 0);
|
||||
|
||||
// Muted sidebar group header
|
||||
void nav_section(const std::string & label);
|
||||
|
||||
// sidebar entry: icon + label, highlighted when selected, returns true when clicked
|
||||
bool nav_item(const char * icon, const std::string & label, bool selected);
|
||||
|
||||
// Single-line text field at control height, hint is optional placeholder text
|
||||
bool input_text(const char * id, std::string & text, const char * hint = nullptr, float width = 0);
|
||||
|
||||
// number field with -/+ steppers, returns true on change
|
||||
bool input_int(const char * id, int * v, int step = 1, int v_min = 0, int v_max = 0, float width = 0);
|
||||
|
||||
// Centred modal on the popup layer, open with ImGui::OpenPopup(id), dismiss with ImGui::CloseCurrentPopup()
|
||||
// Pair with end_modal only when this returns true
|
||||
bool begin_modal(const char * id, const std::string & title, float width = 0);
|
||||
void end_modal();
|
||||
|
||||
struct action_item
|
||||
{
|
||||
const char * icon;
|
||||
const char * label;
|
||||
bool danger = false;
|
||||
bool checked = false;
|
||||
};
|
||||
|
||||
// overflow icon button opening a popup of actions, returns the picked index or -1
|
||||
int action_menu(const char * id, const char * icon, const std::vector<action_item> & items);
|
||||
|
||||
struct list_row_result
|
||||
{
|
||||
ImVec2 min, max; // row rect (screen) for right-aligning trailing controls
|
||||
bool clicked; // the row body was clicked
|
||||
|
||||
// Screen position for a size trailing control, right-aligned to right_x and vertically centred
|
||||
ImVec2 trailing(float right_x, const ImVec2 & size) const
|
||||
{
|
||||
return {right_x - size.x, min.y + (max.y - min.y - size.y) * 0.5f};
|
||||
}
|
||||
};
|
||||
|
||||
// List row: leading thumbnail (image, if non-zero) or icon box, title and muted subtitle
|
||||
// trailing_width reserves right-side space for trailing controls, excluded from the click area
|
||||
// large_thumb spans the leading thumbnail/icon box across the full row height
|
||||
// interactive=false reserves layout only, no row-body click area or hover highlight
|
||||
list_row_result begin_list_row(const char * id, const char * icon, ImTextureID image, const std::string & title, const std::string & subtitle, bool selected = false, float trailing_width = 0, float height = 0, bool large_thumb = false, bool interactive = true);
|
||||
void end_list_row();
|
||||
|
||||
// confirmation dialog, open with ImGui::OpenPopup(id), returns 1 confirmed / -1 cancelled / 0 otherwise
|
||||
// danger styles the confirm button as destructive
|
||||
int confirm_modal(const char * id, const std::string & title, const std::string & message, const std::string & confirm_label, const std::string & cancel_label, bool danger = false);
|
||||
|
||||
// shared window shell: top bar, sidebar and dividers, called inside the main window
|
||||
|
||||
// One slot in the top bar's right-aligned cluster, width is the slot's layout width
|
||||
// draw() renders it at the cursor, vertically centred, at the standard control height
|
||||
struct top_bar_item
|
||||
{
|
||||
float width;
|
||||
std::function<void()> draw;
|
||||
};
|
||||
|
||||
// Top bar: WiVRn logo + wordmark on the left, right_items right-aligned, height in pixels
|
||||
void top_bar(float height, ImTextureID logo, const std::vector<top_bar_item> & right_items);
|
||||
|
||||
// sidebar nav frame: scrolling top section, footer_items rows pinned at the bottom
|
||||
// always pair: begin_sidebar -> sidebar_footer -> end_sidebar
|
||||
void begin_sidebar(float top_bar_h, float tab_width, int footer_items = 0);
|
||||
void sidebar_footer();
|
||||
void end_sidebar();
|
||||
|
||||
// Hairline dividers separating the top bar, sidebar and content, dimmed with the panel
|
||||
void shell_dividers(float top_bar_h, float tab_width);
|
||||
|
||||
} // namespace wivrn::ui
|
||||
+181
-144
@@ -17,77 +17,84 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "app_launcher.h"
|
||||
|
||||
#include "constants.h"
|
||||
#include "application.h"
|
||||
#include "configuration.h"
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include "render/ui_widgets.h"
|
||||
#include "scenes/stream.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/ranges.h"
|
||||
|
||||
#include <IconsFontAwesome7.h>
|
||||
#include <algorithm>
|
||||
#include <imspinner.h>
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include <uni_algo/case.h>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
// Display a button with an image and a text centred horizontally
|
||||
static bool icon(
|
||||
const std::string & text,
|
||||
ImTextureRef tex_ref,
|
||||
const ImVec2 & image_size,
|
||||
ImGuiButtonFlags flags = 0,
|
||||
const ImVec2 & size_arg = ImVec2(0, 0),
|
||||
const ImVec2 & uv0 = ImVec2(0, 0),
|
||||
const ImVec2 & uv1 = ImVec2(1, 1),
|
||||
const ImVec4 & tint_col = ImVec4(1, 1, 1, 1))
|
||||
namespace ui = wivrn::ui;
|
||||
|
||||
namespace
|
||||
{
|
||||
// Based on ImGui::ButtonEx and ImGui::ImageButtonEx
|
||||
ImGuiWindow * window = ImGui::GetCurrentWindow();
|
||||
// target grid icon size per small/medium/large setting, tiles stretch from this to fill the row
|
||||
float grid_image_size(uint32_t size)
|
||||
{
|
||||
switch (size)
|
||||
{
|
||||
case 0:
|
||||
return ui::metrics::app_icon_small;
|
||||
case 2:
|
||||
return ui::metrics::app_icon_large;
|
||||
default:
|
||||
return ui::metrics::app_icon_medium;
|
||||
}
|
||||
}
|
||||
|
||||
// Themed grid tile: image with a centred label below, control surface, accent on hover
|
||||
bool app_tile(const std::string & id, const std::string & name, ImTextureID texture, float tile_w, float image_size)
|
||||
{
|
||||
const ui::theme & t = ui::current();
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
ImGuiWindow * window = ImGui::GetCurrentWindow();
|
||||
|
||||
if (window->SkipItems)
|
||||
return false;
|
||||
|
||||
const ImVec2 label_size = ImGui::CalcTextSize(text.c_str(), nullptr, true);
|
||||
|
||||
ImVec2 size = ImGui::CalcItemSize(
|
||||
size_arg,
|
||||
std::max(image_size.x, label_size.x) + style.FramePadding.x * 2.0f,
|
||||
image_size.y + style.ItemInnerSpacing.y + label_size.y + style.FramePadding.y * 2.0f);
|
||||
|
||||
const float pad = ui::metrics::list_row_pad;
|
||||
const ImVec2 size{tile_w, image_size + pad * 2 + style.ItemInnerSpacing.y + ImGui::GetTextLineHeight()};
|
||||
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
|
||||
|
||||
ImRect image_pos(
|
||||
{(bb.Min.x + bb.Max.x - image_size.x) / 2, bb.Min.y + style.FramePadding.y},
|
||||
{(bb.Min.x + bb.Max.x + image_size.x) / 2, bb.Min.y + style.FramePadding.y + image_size.y});
|
||||
|
||||
ImRect label_pos(
|
||||
{bb.Min.x + style.FramePadding.x, image_pos.Max.y + style.ItemInnerSpacing.y},
|
||||
{bb.Max.x - style.FramePadding.x, bb.Max.y - style.FramePadding.y});
|
||||
|
||||
ImGui::ItemSize(bb);
|
||||
|
||||
ImGuiID id = window->GetID(text.c_str());
|
||||
if (!ImGui::ItemAdd(bb, id))
|
||||
const ImGuiID iid = window->GetID(id.c_str());
|
||||
if (not ImGui::ItemAdd(bb, iid))
|
||||
return false;
|
||||
|
||||
bool hovered, held;
|
||||
bool pressed = ImGui::ButtonBehavior(bb, id, &hovered, &held, flags);
|
||||
const bool pressed = ImGui::ButtonBehavior(bb, iid, &hovered, &held, ImGuiButtonFlags_PressedOnClickRelease);
|
||||
|
||||
// Render
|
||||
const ImU32 col = ImGui::GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered
|
||||
: ImGuiCol_Button);
|
||||
ImGui::RenderNavCursor(bb, id);
|
||||
ImGui::RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding);
|
||||
ImDrawList * dl = window->DrawList;
|
||||
dl->AddRectFilled(bb.Min, bb.Max, t.col(held and hovered ? t.control_active : hovered ? t.card_hovered
|
||||
: t.control),
|
||||
t.card_rounding);
|
||||
if (hovered)
|
||||
dl->AddRect(bb.Min, bb.Max, t.col(t.accent), t.card_rounding, t.border_size * 2);
|
||||
|
||||
window->DrawList->AddImage(tex_ref, image_pos.Min, image_pos.Max, uv0, uv1, ImGui::GetColorU32(tint_col));
|
||||
ImGui::RenderTextClipped(label_pos.Min, label_pos.Max, text.c_str(), NULL, &label_size, style.ButtonTextAlign, &bb);
|
||||
const ImVec2 image_min{(bb.Min.x + bb.Max.x - image_size) / 2, bb.Min.y + pad};
|
||||
dl->AddImage(texture, image_min, image_min + ImVec2{image_size, image_size});
|
||||
|
||||
const ImVec2 label_min{bb.Min.x + pad, image_min.y + image_size + style.ItemInnerSpacing.y};
|
||||
const ImVec2 label_max{bb.Max.x - pad, bb.Max.y - pad};
|
||||
const ImVec2 label_size = ImGui::CalcTextSize(name.c_str(), nullptr, true);
|
||||
ImGui::RenderTextClipped(label_min, label_max, name.c_str(), nullptr, &label_size, {0.5f, 0.5f}, &bb);
|
||||
|
||||
return pressed;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
app_launcher::app_launcher(
|
||||
scenes::stream & stream,
|
||||
@@ -105,139 +112,169 @@ app_launcher::app_launcher(
|
||||
|
||||
app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const std::string & cancel)
|
||||
{
|
||||
auto & config = application::get_config();
|
||||
|
||||
auto res = clicked::None;
|
||||
auto t0 = std::chrono::steady_clock::now();
|
||||
bool app_starting = start_time != std::chrono::steady_clock::time_point{} and
|
||||
t0 - start_time < 10s;
|
||||
|
||||
auto cancel_size = ImGui::CalcTextSize(cancel.c_str());
|
||||
|
||||
auto apps = applications.lock();
|
||||
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
if (server_name.empty())
|
||||
CenterTextH(_("Connected to WiVRn server"));
|
||||
else
|
||||
CenterTextH(fmt::format(_F("Connected to {}"), server_name));
|
||||
ImGui::PopFont();
|
||||
// resolve an app's icon, uploading lazily and capped per frame to stay responsive
|
||||
auto texture_for = [&](app & a) -> ImTextureID {
|
||||
if (a.image.empty())
|
||||
return default_icon;
|
||||
auto it = app_icons.find(a.id);
|
||||
if (it == app_icons.end())
|
||||
{
|
||||
if (std::chrono::steady_clock::now() - t0 > 10ms)
|
||||
return default_icon;
|
||||
try
|
||||
{
|
||||
it = app_icons.emplace(a.id, textures.load_texture(a.image)).first;
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Unable to load icon for \"{}\": {}", a.id, e.what());
|
||||
a.image.clear();
|
||||
return default_icon;
|
||||
}
|
||||
}
|
||||
return it->second;
|
||||
};
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {20, 20});
|
||||
if (apps->empty())
|
||||
auto launch = [&](const std::string & id) {
|
||||
res = clicked::Start;
|
||||
start_time = t0;
|
||||
stream.start_application(id);
|
||||
};
|
||||
|
||||
const ImVec2 content_pad = {34, 34}; // symmetric inner padding, both axes equal
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, content_pad);
|
||||
ImGui::BeginChild("launcher", {0, 0}, ImGuiChildFlags_AlwaysUseWindowPadding);
|
||||
|
||||
const float header_top = ImGui::GetCursorPosY();
|
||||
const std::string subtitle = _S("Pick an application to start streaming, or start one on the PC.");
|
||||
if (server_name.empty())
|
||||
ui::page_header(_cS("status in the title bar", "Connected"), subtitle);
|
||||
else
|
||||
ui::page_header(fmt::format(_F("Connected to {}"), server_name), subtitle);
|
||||
const float content_y = ImGui::GetCursorPosY();
|
||||
|
||||
const bool has_apps = not apps->empty();
|
||||
int view = config.app_list_view ? 1 : 0;
|
||||
int size_idx = std::clamp<int>(config.app_icon_size, 0, 2);
|
||||
const std::vector<std::string> size_opts = {_cS("icon size", "Small"), _cS("icon size", "Medium"), _cS("icon size", "Large")};
|
||||
const std::vector<std::string> view_opts = {ICON_FA_TABLE_CELLS_LARGE, ICON_FA_LIST};
|
||||
const float gap = ImGui::GetStyle().ItemSpacing.x;
|
||||
const float view_w = ui::metrics::app_view_toggle_width;
|
||||
const float size_w = ui::metrics::app_size_toggle_width;
|
||||
const float disconnect_w = ui::button_width(cancel);
|
||||
|
||||
// title row stays fixed: view/size toggles then disconnect, right-aligned, disconnect stays enabled while an app starts
|
||||
const float right = ImGui::GetContentRegionAvail().x + ImGui::GetCursorScreenPos().x - ImGui::GetWindowPos().x;
|
||||
ImGui::SetCursorPos({right - disconnect_w, header_top});
|
||||
if (ui::button(cancel, ui::button_style::danger))
|
||||
res = clicked::Cancel;
|
||||
|
||||
ImGui::BeginDisabled(app_starting);
|
||||
|
||||
if (has_apps)
|
||||
{
|
||||
CenterTextHV(_("Start an application on the server to start streaming."));
|
||||
float toggles_x = right - disconnect_w - gap - view_w;
|
||||
if (view == 0)
|
||||
toggles_x -= size_w + gap;
|
||||
ImGui::SetCursorPos({toggles_x, header_top});
|
||||
if (view == 0)
|
||||
{
|
||||
if (ui::segmented("##icon_size", size_opts, &size_idx, {size_w, 0}))
|
||||
{
|
||||
config.app_icon_size = size_idx;
|
||||
config.save();
|
||||
}
|
||||
ImGui::SameLine(0, gap);
|
||||
}
|
||||
if (ui::segmented("##view_mode", view_opts, &view, {view_w, 0}))
|
||||
{
|
||||
config.app_list_view = view == 1;
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::SetCursorPos({ImGui::GetCursorStartPos().x, content_y});
|
||||
|
||||
if (not has_apps)
|
||||
{
|
||||
ImGui::Spacing();
|
||||
ImGui::TextUnformatted(_S("Waiting for an application on the server"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 0});
|
||||
ImGui::BeginDisabled(app_starting);
|
||||
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, cancel_size.y + 80), 0, app_starting ? ImGuiWindowFlags_NoScrollWithMouse : 0);
|
||||
// only the grid/list scrolls, flush to the header edge with no extra inset
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {0, 0});
|
||||
ImGui::BeginChild("applist", {0, 0});
|
||||
|
||||
ImGui::Indent(20);
|
||||
if (server_name.empty())
|
||||
ImGui::Text("%s", _S("Start an application on your computer or select one to start streaming."));
|
||||
else
|
||||
ImGui::Text("%s", fmt::format(_F("Start an application on {} or select one to start streaming."), server_name).c_str());
|
||||
ImGui::Unindent();
|
||||
|
||||
float icon_width = 400;
|
||||
float icon_spacing = ImGui::GetStyle().ItemSpacing.x;
|
||||
float usable_window_width = ImGui::GetWindowSize().x - ImGui::GetCurrentWindow()->ScrollbarSizes.x;
|
||||
|
||||
int icons_per_line = (usable_window_width + icon_spacing) / (icon_width + icon_spacing);
|
||||
float icon_line_width = icons_per_line * icon_width + (icons_per_line - 1) * icon_spacing;
|
||||
|
||||
ImGui::Indent((usable_window_width - icon_line_width) / 2);
|
||||
|
||||
for (const auto [index, app]: utils::enumerate(*apps))
|
||||
if (config.app_list_view)
|
||||
{
|
||||
ImTextureID texture = [&]() -> ImTextureID {
|
||||
if (app.image.empty())
|
||||
return default_icon;
|
||||
else
|
||||
{
|
||||
auto it = app_icons.find(app.id);
|
||||
if (it == app_icons.end())
|
||||
{
|
||||
// Don't load too many textures at the same time to keep the GUI responsive
|
||||
if (std::chrono::steady_clock::now() - t0 > 10ms)
|
||||
return default_icon;
|
||||
|
||||
try
|
||||
{
|
||||
it = app_icons.emplace(app.id, textures.load_texture(app.image)).first;
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Unable to load icon for \"{}\": {}", app.id, e.what());
|
||||
|
||||
app.image.clear();
|
||||
return default_icon;
|
||||
}
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
}();
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, 0);
|
||||
if (icon(app.name + "##" + app.id, texture, {256, 256}, ImGuiButtonFlags_PressedOnClickRelease, {icon_width, 0}))
|
||||
ui::begin_list_card("##apps");
|
||||
for (auto & app: *apps)
|
||||
{
|
||||
res = clicked::Start;
|
||||
start_time = t0;
|
||||
stream.start_application(app.id);
|
||||
if (ui::begin_list_row(app.id.c_str(), nullptr, texture_for(app), app.name, "").clicked)
|
||||
launch(app.id);
|
||||
ui::end_list_row();
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
ImGui::PopStyleColor(); // ImGuiCol_Button
|
||||
|
||||
if ((index + 1) % icons_per_line)
|
||||
ImGui::SameLine();
|
||||
ui::end_card();
|
||||
}
|
||||
ImGui::Unindent();
|
||||
|
||||
std::vector<std::pair<std::string, ImTextureID>> to_be_removed;
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
else
|
||||
{
|
||||
if (not std::ranges::contains(*apps, app_id, &app::id))
|
||||
to_be_removed.emplace_back(app_id, app_icon);
|
||||
}
|
||||
for (const auto & [app_id, app_icon]: to_be_removed)
|
||||
{
|
||||
imgui_ctx.free_texture(app_icon);
|
||||
app_icons.erase(app_id);
|
||||
// justified grid: as many columns as fit, tiles stretched to divide the row exactly so there is no trailing gap
|
||||
const float tile_margin = ui::metrics::app_tile_margin;
|
||||
const float target = grid_image_size(config.app_icon_size) + tile_margin * 2;
|
||||
const float avail = ImGui::GetContentRegionAvail().x;
|
||||
const int per_line = std::max(1, int((avail + gap) / (target + gap)));
|
||||
const float tile_w = int((avail - gap * (per_line - 1)) / per_line);
|
||||
const float image_size = grid_image_size(config.app_icon_size);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {gap, gap});
|
||||
for (const auto [index, app]: utils::enumerate(*apps))
|
||||
{
|
||||
if (app_tile(app.id, app.name, texture_for(app), tile_w, image_size))
|
||||
launch(app.id);
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
if ((index + 1) % per_line)
|
||||
ImGui::SameLine();
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
ImGui::EndDisabled();
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
if (app_starting)
|
||||
// drop textures for apps no longer listed
|
||||
std::vector<std::string> stale;
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
if (not std::ranges::contains(*apps, app_id, &app::id))
|
||||
stale.push_back(app_id);
|
||||
for (const auto & app_id: stale)
|
||||
{
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() / 2 - ImVec2{200, 200} - ImGui::GetStyle().FramePadding);
|
||||
ImSpinner::SpinnerAng("App starting spinner",
|
||||
200, // Radius
|
||||
40, // Thickness
|
||||
ImColor{1.f, 1.f, 1.f, 1.f}, // Colour
|
||||
ImColor{1.f, 1.f, 1.f, 0.f}, // Background
|
||||
6, // Velocity
|
||||
0.75f * 2 * M_PI // Angle
|
||||
);
|
||||
imgui_ctx.free_texture(app_icons.at(app_id));
|
||||
app_icons.erase(app_id);
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_WindowPadding
|
||||
}
|
||||
|
||||
ImGui::EndDisabled();
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() - cancel_size - ImVec2{50, 50});
|
||||
if (app_starting)
|
||||
{
|
||||
const float r = ui::metrics::app_spinner_radius;
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() / 2 - ImVec2{r, r});
|
||||
ImSpinner::SpinnerAng("starting", r, ui::metrics::app_spinner_thickness, ImColor{ui::current().accent}, ImColor{ui::current().card}, 6, 0.75f * 2 * M_PI);
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(cancel.c_str()))
|
||||
res = clicked::Cancel;
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3); // ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive
|
||||
ImGui::PopStyleVar(2);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
+52
-245
@@ -19,265 +19,72 @@
|
||||
|
||||
#include "gui_common.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "configuration.h"
|
||||
#include "constants.h"
|
||||
#include "render/imgui_impl.h"
|
||||
#include "utils/i18n.h"
|
||||
|
||||
#include "wivrn_packets.h"
|
||||
#include "xr/instance.h"
|
||||
#include "xr/session.h"
|
||||
#include "xr/system.h"
|
||||
#include "android/battery.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include "render/ui_widgets.h"
|
||||
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include <IconsFontAwesome7.h>
|
||||
#include <cmath>
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
|
||||
namespace wivrn::gui
|
||||
{
|
||||
|
||||
std::string rate_label(float rate, uint32_t divider)
|
||||
float toggle_width()
|
||||
{
|
||||
if (rate == 0)
|
||||
return _C("automatic refresh rate", "Automatic");
|
||||
if (divider == 1)
|
||||
return fmt::format("{}", rate);
|
||||
|
||||
return fmt::format(_cF("refresh rate selection, with reprojection", "{} ({} with space warp)"), rate / divider, rate);
|
||||
return ImGui::GetFrameHeight() * ui::metrics::control_height * ui::metrics::toggle_aspect;
|
||||
}
|
||||
|
||||
bool refresh_rate(
|
||||
xr::instance & instance,
|
||||
xr::session & session,
|
||||
imgui_context & imgui_ctx,
|
||||
configuration & config)
|
||||
std::optional<battery_indicator> battery_status_indicator(XrTime now)
|
||||
{
|
||||
if (not instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
|
||||
return false;
|
||||
#ifdef __ANDROID__
|
||||
const auto battery = get_battery_status();
|
||||
if (not battery.charge)
|
||||
return std::nullopt;
|
||||
|
||||
const auto & refresh_rates = session.get_refresh_rates();
|
||||
if (refresh_rates.empty())
|
||||
return false;
|
||||
|
||||
bool changed = false;
|
||||
if (ImGui::BeginCombo(
|
||||
_S("Refresh rate"),
|
||||
rate_label(config.preferred_refresh_rate, config.fps_divider).c_str()))
|
||||
const char * icon = ICON_FA_BATTERY_FULL;
|
||||
int icon_nr;
|
||||
if (battery.charging)
|
||||
icon_nr = *battery.charge > 0.995 ? 5 : now / 500'000'000 % 5;
|
||||
else
|
||||
icon_nr = std::round((*battery.charge) * 4);
|
||||
switch (icon_nr)
|
||||
{
|
||||
if (ImGui::Selectable(
|
||||
_cS("automatic refresh rate", "Automatic"),
|
||||
config.preferred_refresh_rate == 0,
|
||||
ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
config.preferred_refresh_rate = 0;
|
||||
config.fps_divider = 1;
|
||||
config.save();
|
||||
changed = true;
|
||||
}
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx.tooltip(_("Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."));
|
||||
|
||||
for (uint32_t divider: {1, 2})
|
||||
{
|
||||
for (float rate: refresh_rates)
|
||||
{
|
||||
if (ImGui::Selectable(
|
||||
rate_label(rate, divider).c_str(),
|
||||
rate == config.preferred_refresh_rate and divider == config.fps_divider,
|
||||
ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
spdlog::info("configured refresh rate: {}", rate);
|
||||
session.set_refresh_rate(rate);
|
||||
config.preferred_refresh_rate = rate;
|
||||
config.fps_divider = divider;
|
||||
config.save();
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
case 0:
|
||||
icon = ICON_FA_BATTERY_EMPTY;
|
||||
break;
|
||||
case 1:
|
||||
icon = ICON_FA_BATTERY_QUARTER;
|
||||
break;
|
||||
case 2:
|
||||
icon = ICON_FA_BATTERY_HALF;
|
||||
break;
|
||||
case 3:
|
||||
icon = ICON_FA_BATTERY_THREE_QUARTERS;
|
||||
break;
|
||||
case 4:
|
||||
icon = ICON_FA_BATTERY_FULL;
|
||||
break;
|
||||
case 5:
|
||||
icon = ICON_FA_PLUG;
|
||||
break;
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
|
||||
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2)
|
||||
{
|
||||
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
|
||||
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
|
||||
{
|
||||
for (float rate: refresh_rates | std::views::take(refresh_rates.size() - 1))
|
||||
{
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.minimum_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
config.minimum_refresh_rate = rate;
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
ui::chip_style style;
|
||||
if (*battery.charge < 0.2)
|
||||
style = ui::chip_style::danger;
|
||||
else if (*battery.charge < 0.5)
|
||||
style = ui::chip_style::warning;
|
||||
else
|
||||
style = ui::chip_style::success;
|
||||
|
||||
bool body_tracking_parts(
|
||||
xr::system & system,
|
||||
imgui_context & imgui_ctx,
|
||||
configuration & config)
|
||||
{
|
||||
auto body_tracker = system.body_tracker_supported();
|
||||
if (body_tracker == xr::body_tracker_type::none or body_tracker == xr::body_tracker_type::htc)
|
||||
return false;
|
||||
|
||||
const std::array body_parts{
|
||||
std::make_pair(from_headset::body_part_mask::chest, _C("virtual body tracker selection", "Chest")),
|
||||
std::make_pair(from_headset::body_part_mask::left_elbow, _C("virtual body tracker selection", "Left elbow")),
|
||||
std::make_pair(from_headset::body_part_mask::right_elbow, _C("virtual body tracker selection", "Right elbow")),
|
||||
std::make_pair(from_headset::body_part_mask::hip, _C("virtual body tracker selection", "Hip")),
|
||||
std::make_pair(from_headset::body_part_mask::left_knee, _C("virtual body tracker selection", "Left knee")),
|
||||
std::make_pair(from_headset::body_part_mask::right_knee, _C("virtual body tracker selection", "Right knee")),
|
||||
std::make_pair(from_headset::body_part_mask::left_foot, _C("virtual body tracker selection", "Left foot")),
|
||||
std::make_pair(from_headset::body_part_mask::right_foot, _C("virtual body tracker selection", "Right foot")),
|
||||
return battery_indicator{
|
||||
.label = fmt::format("{} {}%", icon, (int)std::round(*battery.charge * 100)),
|
||||
.style = style,
|
||||
};
|
||||
|
||||
bool changed = false;
|
||||
bool button_pressed = ImGui::ArrowButton("##OpenBodyPartMenu", ImGuiDir_Down);
|
||||
ImGui::SameLine(0.f, ImGui::GetStyle().ItemInnerSpacing.x);
|
||||
ImGui::Text("%s", _S("Virtual body trackers"));
|
||||
|
||||
if (button_pressed)
|
||||
ImGui::OpenPopup("body part menu");
|
||||
|
||||
const auto & popup_layer = imgui_ctx.layers()[1];
|
||||
const glm::vec2 popup_layer_center = popup_layer.vp_origin + popup_layer.vp_size / 2;
|
||||
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, constants::style::window_padding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::window_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, constants::style::window_border_size);
|
||||
|
||||
if (ImGui::BeginPopupModal("body part menu", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
{
|
||||
const float height = ImGui::GetFrameHeight();
|
||||
const ImVec2 size(height, height);
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - size.x);
|
||||
if (ImGui::Button("X", size))
|
||||
ImGui::CloseCurrentPopup();
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3); // ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive
|
||||
|
||||
for (const auto & [bit, name]: body_parts)
|
||||
{
|
||||
if (body_tracker == xr::body_tracker_type::fb and bit > from_headset::body_part_mask::hip)
|
||||
continue;
|
||||
|
||||
const auto underlying = std::to_underlying(bit);
|
||||
bool enabled = config.body_part_mask & underlying;
|
||||
if (ImGui::Checkbox(name.c_str(), &enabled))
|
||||
{
|
||||
if (enabled)
|
||||
{
|
||||
config.body_part_mask |= underlying;
|
||||
}
|
||||
else
|
||||
{
|
||||
config.body_part_mask &= ~underlying;
|
||||
}
|
||||
config.save();
|
||||
changed = true;
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
ImGui::PopStyleVar(3); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_WindowRounding, ImGuiStyleVar_WindowBorderSize
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
static std::string openxr_post_processing_flag_name(XrCompositionLayerSettingsFlagsFB flag)
|
||||
{
|
||||
switch (flag)
|
||||
{
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB:
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB:
|
||||
return _C("openxr_post_processing", "Normal");
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB:
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB:
|
||||
return _C("openxr_post_processing", "Quality");
|
||||
default:
|
||||
return _C("openxr_post_processing", "Disabled");
|
||||
}
|
||||
}
|
||||
|
||||
bool post_processing(
|
||||
imgui_context & imgui_ctx,
|
||||
configuration & config)
|
||||
{
|
||||
bool changed = false;
|
||||
if (not application::get_openxr_post_processing_supported())
|
||||
return changed;
|
||||
|
||||
ImGui::Text("%s", _S("OpenXR post-processing"));
|
||||
ImGui::Indent();
|
||||
|
||||
{
|
||||
XrCompositionLayerSettingsFlagsFB current = config.openxr_post_processing.super_sampling;
|
||||
if (ImGui::BeginCombo(_S("Supersampling"), openxr_post_processing_flag_name(current).c_str()))
|
||||
{
|
||||
const XrCompositionLayerSettingsFlagsFB selectable_options[]{
|
||||
0,
|
||||
XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB,
|
||||
XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB};
|
||||
for (XrCompositionLayerSettingsFlagsFB option: selectable_options)
|
||||
{
|
||||
if (ImGui::Selectable(openxr_post_processing_flag_name(option).c_str(), current == option, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
spdlog::info("Setting OpenXR super sampling to {}", openxr_post_processing_flag_name(option));
|
||||
config.openxr_post_processing.super_sampling = option;
|
||||
config.save();
|
||||
changed = true;
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx.tooltip(_("Reduce flicker for high contrast edges.\nUseful when the input resolution is high compared to the headset display"));
|
||||
}
|
||||
|
||||
{
|
||||
XrCompositionLayerSettingsFlagsFB current = config.openxr_post_processing.sharpening;
|
||||
if (ImGui::BeginCombo(_S("Sharpening"), openxr_post_processing_flag_name(current).c_str()))
|
||||
{
|
||||
const XrCompositionLayerSettingsFlagsFB selectable_options[]{
|
||||
0,
|
||||
XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB,
|
||||
XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB};
|
||||
for (XrCompositionLayerSettingsFlagsFB option: selectable_options)
|
||||
{
|
||||
if (ImGui::Selectable(openxr_post_processing_flag_name(option).c_str(), current == option, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
spdlog::info("Setting OpenXR sharpening to {}", openxr_post_processing_flag_name(option));
|
||||
config.openxr_post_processing.sharpening = option;
|
||||
config.save();
|
||||
changed = true;
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx.tooltip(_("Improve clarity of high contrast edges and counteract blur.\nUseful when the input resolution is low compared to the headset display"));
|
||||
}
|
||||
|
||||
ImGui::Unindent();
|
||||
return changed;
|
||||
#else
|
||||
(void)now;
|
||||
return std::nullopt;
|
||||
#endif
|
||||
}
|
||||
} // namespace wivrn::gui
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "render/ui_widgets.h"
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
class configuration;
|
||||
class imgui_context;
|
||||
|
||||
@@ -41,14 +46,21 @@ bool refresh_rate(
|
||||
imgui_context & imgui_ctx,
|
||||
configuration & config);
|
||||
|
||||
bool body_tracking_parts(
|
||||
xr::system & system,
|
||||
imgui_context & imgui_ctx,
|
||||
configuration & config);
|
||||
|
||||
bool post_processing(
|
||||
imgui_context & imgui_ctx,
|
||||
configuration & config);
|
||||
|
||||
float toggle_width();
|
||||
|
||||
// top-bar battery pill: icon+percent label and threshold colour
|
||||
struct battery_indicator
|
||||
{
|
||||
std::string label;
|
||||
wivrn::ui::chip_style style;
|
||||
};
|
||||
|
||||
// headset battery as a top-bar pill, nullopt when unavailable, now drives the charging animation
|
||||
std::optional<battery_indicator> battery_status_indicator(XrTime now);
|
||||
|
||||
} // namespace gui
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -0,0 +1,908 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// each page builds a list of `setting` descriptors, render_settings() draws the matching
|
||||
// ui:: widget for each, rebuilt every frame so dynamic options/descriptions just work
|
||||
// same pages serve the lobby and the in-stream window, gated by ctx.in_game
|
||||
|
||||
#include "scenes/gui_common.h"
|
||||
|
||||
#include "gui_settings.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "configuration.h"
|
||||
#include "decoder/decoder.h"
|
||||
#include "render/imgui_impl.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include "render/ui_widgets.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "xr/instance.h"
|
||||
#include "xr/session.h"
|
||||
#include "xr/system.h"
|
||||
|
||||
#include "imgui.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <boost/locale.hpp>
|
||||
#include <cmath>
|
||||
#include <functional>
|
||||
#include <locale>
|
||||
#include <optional>
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
namespace ui = wivrn::ui;
|
||||
|
||||
namespace
|
||||
{
|
||||
constexpr float control_w = ui::metrics::setting_control_width;
|
||||
|
||||
float toggle_width()
|
||||
{
|
||||
return ImGui::GetFrameHeight() * ui::metrics::control_height * ui::metrics::toggle_aspect;
|
||||
}
|
||||
|
||||
enum class ui_kind
|
||||
{
|
||||
toggle,
|
||||
slider,
|
||||
segmented,
|
||||
combo,
|
||||
combo_multi,
|
||||
button,
|
||||
};
|
||||
|
||||
// one declarative setting, `enabled` greys the row out without hiding it
|
||||
struct setting
|
||||
{
|
||||
const char * id; // stable imgui id
|
||||
std::string label;
|
||||
std::string description;
|
||||
ui_kind ui = ui_kind::toggle;
|
||||
|
||||
std::function<bool()> get_bool;
|
||||
std::function<void(bool)> set_bool;
|
||||
|
||||
std::function<int()> get_int;
|
||||
std::function<void(int)> set_int;
|
||||
int v_min = 0;
|
||||
int v_max = 0;
|
||||
|
||||
std::function<bool(int)> get_multi;
|
||||
std::function<void(int, bool)> set_multi;
|
||||
|
||||
std::string fmt;
|
||||
std::function<std::vector<std::string>()> options;
|
||||
std::string title; // combo modal title
|
||||
|
||||
std::string button_label; // ui_kind::button
|
||||
std::function<void()> on_click; // ui_kind::button
|
||||
|
||||
std::optional<bool> default_bool; // reset target for toggles
|
||||
std::optional<int> default_int; // reset target for slider/segmented/combo
|
||||
std::optional<std::vector<char>> default_multi; // reset target for multicombo
|
||||
|
||||
std::function<bool()> enabled;
|
||||
std::string disabled_tooltip; // shown on a disabled row
|
||||
};
|
||||
|
||||
void render_settings(const wivrn::gui::settings_context & ctx, const char * card_id, const std::vector<setting> & list)
|
||||
{
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ui::metrics::card_item_spacing);
|
||||
ui::begin_card(card_id);
|
||||
|
||||
for (const auto & s: list)
|
||||
{
|
||||
const bool enabled = s.enabled ? s.enabled() : true;
|
||||
ImGui::BeginDisabled(not enabled);
|
||||
|
||||
// stable storage for the reset defaults during this call
|
||||
bool def_b = s.default_bool.value_or(false);
|
||||
int def_i = s.default_int.value_or(0);
|
||||
const bool * dpb = s.default_bool ? &def_b : nullptr;
|
||||
const int * dpi = s.default_int ? &def_i : nullptr;
|
||||
const std::vector<char> * dpm = s.default_multi ? &s.default_multi.value() : nullptr;
|
||||
|
||||
const ImVec2 row_min = ImGui::GetCursorScreenPos();
|
||||
|
||||
const float w = s.ui == ui_kind::toggle ? toggle_width() + (s.default_bool ? ui::reset_slot_width() : 0) : control_w;
|
||||
const float label_bottom = ui::setting_label(s.label, s.description, w);
|
||||
|
||||
switch (s.ui)
|
||||
{
|
||||
case ui_kind::toggle: {
|
||||
bool v = s.get_bool();
|
||||
if (ui::toggle(s.id, &v, dpb))
|
||||
s.set_bool(v);
|
||||
break;
|
||||
}
|
||||
case ui_kind::slider: {
|
||||
int v = s.get_int();
|
||||
if (ui::slider_int(s.id, &v, s.v_min, s.v_max, s.fmt.c_str(), {control_w, 0}, dpi))
|
||||
s.set_int(v);
|
||||
break;
|
||||
}
|
||||
case ui_kind::segmented: {
|
||||
const auto opts = s.options();
|
||||
int v = s.get_int();
|
||||
if (ui::segmented(s.id, opts, &v, {control_w, 0}, dpi))
|
||||
s.set_int(v);
|
||||
break;
|
||||
}
|
||||
case ui_kind::combo: {
|
||||
const auto opts = s.options();
|
||||
std::vector<ui::combo_item> items;
|
||||
for (const auto & o: opts)
|
||||
items.push_back({o.c_str()});
|
||||
int v = s.get_int();
|
||||
if (ui::combo(s.id, s.title, items, &v, control_w, dpi))
|
||||
s.set_int(v);
|
||||
break;
|
||||
}
|
||||
case ui_kind::combo_multi: {
|
||||
const auto opts = s.options();
|
||||
std::vector<ui::combo_item> items;
|
||||
std::vector<char> selected;
|
||||
for (const auto & o: opts)
|
||||
items.push_back({o.c_str()});
|
||||
for (size_t i = 0; i < items.size(); ++i)
|
||||
selected.push_back(s.get_multi(i));
|
||||
|
||||
if (ui::combo_multi(s.id, s.title, s.title, items, &selected, control_w, dpm))
|
||||
{
|
||||
// TODO only set the changed value
|
||||
for (size_t i = 0; i < items.size(); ++i)
|
||||
s.set_multi(i, selected[i]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ui_kind::button: {
|
||||
if (ui::button(s.button_label, ui::button_style::secondary, {control_w, 0}) and s.on_click)
|
||||
s.on_click();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndDisabled();
|
||||
|
||||
// reserve row height for a multi-line description plus padding, Dummy grows content size
|
||||
const float pad = std::max(label_bottom - ImGui::GetCursorPosY(), 0.f) + ui::metrics::label_bottom_pad;
|
||||
ImGui::Dummy({0, pad});
|
||||
|
||||
// disabled rows can't fire the widget tooltip hook, do it on the row
|
||||
if (not enabled and not s.disabled_tooltip.empty())
|
||||
{
|
||||
const ImVec2 row_max{row_min.x + ImGui::GetContentRegionAvail().x, ImGui::GetCursorScreenPos().y};
|
||||
if (ImGui::IsMouseHoveringRect(row_min, row_max))
|
||||
ctx.imgui_ctx.tooltip(s.disabled_tooltip, (row_min + row_max) / 2);
|
||||
}
|
||||
}
|
||||
|
||||
ui::end_card();
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
||||
template <typename Range, typename T>
|
||||
std::optional<int> index(const Range & range, const T & value)
|
||||
{
|
||||
auto it = std::ranges::find(range, value);
|
||||
if (it == range.end())
|
||||
return std::nullopt;
|
||||
else
|
||||
return (it - range.begin());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace wivrn::gui
|
||||
{
|
||||
|
||||
void settings_video(const settings_context & ctx)
|
||||
{
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
const std::string disconnect_tip = ctx.in_game ? _C("tooltip for disabled settings", "Disconnect to change this setting.") : std::string{};
|
||||
std::vector<setting> list;
|
||||
|
||||
if (const auto rates = ctx.session.get_refresh_rates(); not rates.empty())
|
||||
{
|
||||
int default_rate_index = index(rates, default_config.preferred_refresh_rate).value_or(-1) + 1;
|
||||
|
||||
list.push_back({
|
||||
.id = "##refresh",
|
||||
.label = _("Refresh rate"),
|
||||
.description = _("Use 'auto' to select the refresh rate based on measured application performance. May cause flicker when a change happens."),
|
||||
.ui = rates.size() < 7 ? ui_kind::segmented : ui_kind::combo,
|
||||
.get_int = [&config, rates] {
|
||||
for (size_t i = 0; i < rates.size(); ++i)
|
||||
if (rates[i] == config.preferred_refresh_rate)
|
||||
return int(i) + 1;
|
||||
return 0; },
|
||||
.set_int = [&ctx, &config, rates](int v) {
|
||||
if (v == 0)
|
||||
{
|
||||
config.preferred_refresh_rate = 0;
|
||||
config.fps_divider = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
ctx.session.set_refresh_rate(rates[v - 1]);
|
||||
config.preferred_refresh_rate = rates[v - 1];
|
||||
}
|
||||
config.save();
|
||||
if (ctx.on_streaming_changed)
|
||||
ctx.on_streaming_changed(); },
|
||||
.options = [rates] {
|
||||
std::vector<std::string> opts;
|
||||
opts.push_back(_C("automatic refresh rate, use a short string", "Auto"));
|
||||
for (float r: rates)
|
||||
opts.push_back(fmt::format("{}", int(r)));
|
||||
return opts; },
|
||||
.default_int = default_rate_index,
|
||||
});
|
||||
}
|
||||
|
||||
{
|
||||
const auto width = ctx.recommended_width;
|
||||
const auto height = ctx.recommended_height;
|
||||
list.push_back({
|
||||
.id = "##resolution",
|
||||
.label = _("Render resolution"),
|
||||
.description = fmt::format(_cF("render resolution", "Pixels rendered per eye ({}x{}). Lower to gain performance."), int(width * config.resolution_scale), int(height * config.resolution_scale)),
|
||||
.ui = ui_kind::slider,
|
||||
.get_int = [&config] { return int(std::lround(config.resolution_scale * 100)); },
|
||||
.set_int = [&config](int v) { config.resolution_scale = v / 100.0; config.save(); },
|
||||
.v_min = 50,
|
||||
.v_max = config.extended_config ? 350 : 150,
|
||||
.fmt = "%d%%",
|
||||
.default_int = int(std::lround(default_config.resolution_scale * 100)),
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
}
|
||||
|
||||
if (ctx.instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
|
||||
{
|
||||
list.push_back({
|
||||
.id = "##spacewarp",
|
||||
.label = _("Application SpaceWarp"),
|
||||
.description = _("Renders at half the refresh rate. The headset may synthesise frames."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.fps_divider == 2; },
|
||||
.set_bool = [&ctx, &config](bool v) { config.fps_divider = v ? 2 : 1; config.save(); if (ctx.on_streaming_changed) ctx.on_streaming_changed(); },
|
||||
.default_bool = default_config.fps_divider == 2,
|
||||
.enabled = [&config] { return config.preferred_refresh_rate != 0; },
|
||||
.disabled_tooltip = _("Set a refresh rate other than auto to enable this setting."),
|
||||
});
|
||||
}
|
||||
|
||||
ui::page_header(_cS("page header title", "Video"), _cS("page header subtitle", "Frame rate and resolution."));
|
||||
render_settings(ctx, "##video", list);
|
||||
}
|
||||
|
||||
void settings_streaming(const settings_context & ctx)
|
||||
{
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
const std::string disconnect_tip = ctx.in_game ? _C("tooltip for disabled settings", "Disconnect to change this setting.") : std::string{};
|
||||
std::vector<setting> list;
|
||||
|
||||
list.push_back({
|
||||
.id = "##foveation",
|
||||
.label = _("Foveated encoding"),
|
||||
.description = config.check_feature(feature::eye_gaze)
|
||||
? _("Higher values focus image quality where you look at, improving latency, power efficiency and quality.")
|
||||
: _("Higher values focus image quality at the center, improving latency, power efficiency and quality."),
|
||||
.ui = ui_kind::slider,
|
||||
.get_int = [&config] { return int(std::lround((1 - config.get_stream_scale()) * 100)); },
|
||||
.set_int = [&config](int v) {
|
||||
if (not config.extended_config)
|
||||
v = std::clamp(v, 30, 80);
|
||||
config.set_stream_scale(1 - v * 0.01);
|
||||
config.save(); },
|
||||
.v_min = 0,
|
||||
.v_max = 80,
|
||||
.fmt = "%d%%",
|
||||
.default_int = int(std::lround((1 - default_config.get_stream_scale()) * 100)),
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
|
||||
auto codec_name = [](std::optional<wivrn::video_codec> codec) -> std::string {
|
||||
if (not codec)
|
||||
return _C("Codec", "Automatic");
|
||||
switch (*codec)
|
||||
{
|
||||
case wivrn::h264:
|
||||
return _C("Codec", "H.264");
|
||||
case wivrn::h265:
|
||||
return _C("Codec", "HEVC (H.265)");
|
||||
case wivrn::av1:
|
||||
return _C("Codec", "AV1");
|
||||
case wivrn::raw:
|
||||
break;
|
||||
}
|
||||
return _C("Codec", "Automatic");
|
||||
};
|
||||
|
||||
std::vector<wivrn::video_codec> codecs;
|
||||
for (auto c: wivrn::decoder::supported_codecs())
|
||||
if (c != wivrn::raw)
|
||||
codecs.push_back(c);
|
||||
|
||||
list.push_back({
|
||||
.id = "##codec",
|
||||
.label = _C("setting name", "Video codec"),
|
||||
.description = _("How video is compressed before it is sent to the headset."),
|
||||
.ui = ui_kind::combo,
|
||||
.get_int = [&config, codecs] { return config.codec ? index(codecs, *config.codec).value_or(-1) + 1 : 0; },
|
||||
.set_int = [&config, codecs](int v) {
|
||||
config.codec = v == 0 ? std::nullopt : std::optional(codecs[v - 1]);
|
||||
config.save(); },
|
||||
.options = [codecs, codec_name] {
|
||||
std::vector<std::string> opts;
|
||||
opts.push_back(codec_name(std::nullopt));
|
||||
for (auto c: codecs)
|
||||
opts.push_back(codec_name(c));
|
||||
return opts; },
|
||||
.title = _C("setting name", "Video codec"),
|
||||
.default_int = default_config.codec ? index(codecs, *default_config.codec).value_or(-1) + 1 : 0,
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
|
||||
if (config.codec == wivrn::h265 or config.codec == wivrn::av1)
|
||||
{
|
||||
list.push_back({
|
||||
.id = "##ten_bit",
|
||||
.label = _C("setting name", "10-bit color"),
|
||||
.description = _("Higher color precision, supported by HEVC and AV1."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.bit_depth == 10; },
|
||||
.set_bool = [&config](bool v) { config.bit_depth = v ? 10 : 8; config.save(); },
|
||||
.default_bool = default_config.bit_depth == 10,
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
}
|
||||
|
||||
const int mb = 1'000'000;
|
||||
list.push_back({
|
||||
.id = "##bitrate",
|
||||
.label = _("Bitrate"),
|
||||
.description = _("Video data rate sent to the headset."),
|
||||
.ui = ui_kind::slider,
|
||||
.get_int = [&config] { return int(config.bitrate_bps / mb); },
|
||||
.set_int = [&ctx, &config](int v) { config.bitrate_bps = uint32_t(v) * mb; config.save(); if (ctx.on_streaming_changed) ctx.on_streaming_changed(); },
|
||||
.v_min = 5,
|
||||
.v_max = int(config.max_bitrate() / mb),
|
||||
.fmt = "%d Mbit/s",
|
||||
.default_int = int(default_config.bitrate_bps / mb),
|
||||
});
|
||||
|
||||
// in-stream: steer where foveation focuses quality
|
||||
if (ctx.in_game)
|
||||
{
|
||||
list.push_back({
|
||||
.id = "##fov_override",
|
||||
.label = _C("setting name", "Foveation center override"),
|
||||
.description = _("Manually set where image quality is focused, instead of the center or your gaze."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.override_foveation_enable; },
|
||||
.set_bool = [&ctx, &config](bool v) {
|
||||
config.override_foveation_enable = v;
|
||||
config.save();
|
||||
if (ctx.on_foveation_override_changed)
|
||||
ctx.on_foveation_override_changed(); },
|
||||
.default_bool = default_config.override_foveation_enable,
|
||||
});
|
||||
list.push_back({
|
||||
.id = "##fov_adjust",
|
||||
.label = _C("setting name", "Foveation center"),
|
||||
.description = fmt::format(_F("Height {:.1f} °, distance {:.2f} m"), -config.override_foveation_pitch * 180 / M_PI, config.override_foveation_distance),
|
||||
.ui = ui_kind::button,
|
||||
.button_label = _C("button label to change the foveation center", "Change"),
|
||||
.on_click = [&ctx] { if (ctx.enter_foveation_adjust) ctx.enter_foveation_adjust(); },
|
||||
.enabled = [&config] { return config.override_foveation_enable; },
|
||||
.disabled_tooltip = _("Enable foveation center override to change this setting."),
|
||||
});
|
||||
}
|
||||
|
||||
ui::page_header(_cS("page header title", "Streaming"), _cS("page header subtitle", "How video is encoded and sent to the headset."));
|
||||
render_settings(ctx, "##streaming", list);
|
||||
|
||||
if (wivrn::ui::confirm_modal(
|
||||
"confirm disable in stream gui",
|
||||
_C("confirmation messagebox title", "Disable in-stream window"),
|
||||
_C("confirmation message", "Do you really want to disable the in-stream window?\nYou will not be able to re-open it with the thumbsticks."),
|
||||
_("Yes"),
|
||||
_("No"),
|
||||
true) == 1)
|
||||
{
|
||||
config.enable_stream_gui = false;
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
|
||||
void settings_post_processing(const settings_context & ctx)
|
||||
{
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
std::vector<setting> list;
|
||||
|
||||
if (application::get_openxr_post_processing_supported())
|
||||
{
|
||||
auto flag_name = [](XrCompositionLayerSettingsFlagsFB f) -> std::string {
|
||||
switch (f)
|
||||
{
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB:
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB:
|
||||
return _C("openxr_post_processing", "Normal");
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB:
|
||||
case XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB:
|
||||
return _C("openxr_post_processing", "Quality");
|
||||
default:
|
||||
return _C("openxr_post_processing", "Disabled");
|
||||
}
|
||||
};
|
||||
|
||||
auto flag_combo = [&](const char * id, std::string label, std::string desc, std::array<XrCompositionLayerSettingsFlagsFB, 3> flags, XrCompositionLayerSettingsFlagsFB configuration::openxr_post_processing_settings::* member) {
|
||||
std::string title = label;
|
||||
list.push_back({
|
||||
.id = id,
|
||||
.label = std::move(label),
|
||||
.description = std::move(desc),
|
||||
.ui = ui_kind::combo,
|
||||
.get_int = [&config, flags, member] { return index(flags, config.openxr_post_processing.*member).value_or(0); },
|
||||
.set_int = [&config, flags, member](int v) {
|
||||
config.openxr_post_processing.*member = flags[v];
|
||||
config.save(); },
|
||||
.options = [flags, flag_name] {
|
||||
std::vector<std::string> o;
|
||||
for (auto f: flags)
|
||||
o.push_back(flag_name(f));
|
||||
return o; },
|
||||
.title = std::move(title),
|
||||
.default_int = index(flags, config.openxr_post_processing.*member).value_or(0),
|
||||
});
|
||||
};
|
||||
|
||||
flag_combo("##supersampling", _("Supersampling"), _("Reduce flicker for high contrast edges. Useful when the input resolution is high compared to the headset display."), {0, XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB, XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB}, &configuration::openxr_post_processing_settings::super_sampling);
|
||||
flag_combo("##sharpening", _("Sharpening"), _("Improve clarity of high contrast edges and counteract blur. Useful when the input resolution is low compared to the headset display."), {0, XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB, XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB}, &configuration::openxr_post_processing_settings::sharpening);
|
||||
}
|
||||
|
||||
ui::page_header(_S("Post-processing"), _cS("page header subtitle", "OpenXR layer supersampling and sharpening."));
|
||||
render_settings(ctx, "##post_processing", list);
|
||||
}
|
||||
|
||||
void settings_audio(const settings_context & ctx)
|
||||
{
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
const std::string disconnect_tip = ctx.in_game ? _C("tooltip for disabled settings", "Disconnect to change this setting.") : std::string{};
|
||||
std::vector<setting> list;
|
||||
|
||||
list.push_back({
|
||||
.id = "##microphone",
|
||||
.label = _C("setting name", "Microphone"),
|
||||
.description = _("Stream the headset microphone to the PC."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.check_feature(feature::microphone); },
|
||||
.set_bool = [&config](bool v) { config.set_feature(feature::microphone, v); },
|
||||
.default_bool = default_config.check_feature(feature::microphone),
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
|
||||
list.push_back({
|
||||
.id = "##unprocessed",
|
||||
.label = _C("setting name", "Unprocessed audio"),
|
||||
.description = _("Disable audio filters, such as noise cancellation."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.mic_unprocessed_audio; },
|
||||
.set_bool = [&config](bool v) { config.mic_unprocessed_audio = v; config.save(); },
|
||||
.default_bool = default_config.mic_unprocessed_audio,
|
||||
.enabled = [&ctx, &config] { return not ctx.in_game and config.check_feature(feature::microphone); },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
|
||||
ui::page_header(_cS("page header title", "Audio"), _cS("page header subtitle", "Microphone streamed to the PC."));
|
||||
render_settings(ctx, "##audio", list);
|
||||
}
|
||||
|
||||
void settings_devices(const settings_context & ctx)
|
||||
{
|
||||
auto & config = application::get_config();
|
||||
auto & default_config = ctx.default_config;
|
||||
std::vector<setting> list;
|
||||
|
||||
#ifdef __ANDROID__
|
||||
list.push_back({
|
||||
.id = "##keyboard",
|
||||
.label = _C("setting name", "Keyboard"),
|
||||
.description = _("Forward the keyboard from the headset to the PC."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.forward_keyboard; },
|
||||
.set_bool = [&config](bool v) { config.forward_keyboard = v; config.save(); },
|
||||
.default_bool = default_config.forward_keyboard,
|
||||
});
|
||||
|
||||
list.push_back({
|
||||
.id = "##mouse",
|
||||
.label = _C("setting name", "Mouse"),
|
||||
.description = _("Forward the mouse from the headset to the PC."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.forward_mouse; },
|
||||
.set_bool = [&config](bool v) { config.forward_mouse = v; config.save(); },
|
||||
.default_bool = default_config.forward_mouse,
|
||||
});
|
||||
#endif
|
||||
|
||||
list.push_back({
|
||||
.id = "##gamepad",
|
||||
.label = _C("setting name", "Gamepad"),
|
||||
.description = _("Forward the gamepad from the headset to the PC."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.forward_gamepad; },
|
||||
.set_bool = [&config](bool v) { config.forward_gamepad = v; config.save(); },
|
||||
.default_bool = default_config.forward_gamepad,
|
||||
});
|
||||
|
||||
ui::page_header(_cS("page header title", "Devices"), _cS("page header subtitle", "Forward input devices to the PC."));
|
||||
render_settings(ctx, "##devices", list);
|
||||
|
||||
if (ctx.server_hid_forwarding == false and (config.forward_keyboard or config.forward_mouse or config.forward_gamepad))
|
||||
ui::chip(_("The server does not allow forwarded input devices"), ui::chip_style::warning);
|
||||
}
|
||||
|
||||
bool settings_tracking(const settings_context & ctx)
|
||||
{
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
const std::string disconnect_tip = ctx.in_game ? _C("tooltip for disabled settings", "Disconnect to change this setting.") : std::string{};
|
||||
std::vector<setting> list;
|
||||
|
||||
auto feature_toggle = [&](const char * id, std::string label, std::string desc, feature f) {
|
||||
list.push_back({
|
||||
.id = id,
|
||||
.label = std::move(label),
|
||||
.description = std::move(desc),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config, f] { return config.check_feature(f); },
|
||||
.set_bool = [&config, f](bool v) { config.set_feature(f, v); },
|
||||
.default_bool = default_config.check_feature(f),
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
};
|
||||
|
||||
if (ctx.system.hand_tracking_supported())
|
||||
feature_toggle("##hand", _C("setting name", "Hand tracking"), _("Track your hands for input when controllers are down."), feature::hand_tracking);
|
||||
|
||||
if (application::get_eye_gaze_supported())
|
||||
feature_toggle("##eye", _C("setting name", "Eye tracking"), _("Used by foveated encoding to focus quality where you look."), feature::eye_gaze);
|
||||
|
||||
if (ctx.system.face_tracker_supported() != xr::face_tracker_type::none)
|
||||
feature_toggle("##face", _C("setting name", "Face tracking"), _("Stream facial expressions to the PC."), feature::face_tracking);
|
||||
|
||||
const auto body_tracker = ctx.system.body_tracker_supported();
|
||||
|
||||
std::vector<char> body_parts_default;
|
||||
std::vector<std::string> body_parts_names;
|
||||
std::vector<from_headset::body_part_mask> body_parts_bit;
|
||||
for (const auto & [bit, name]: {
|
||||
std::make_pair(from_headset::body_part_mask::chest, _C("virtual body tracker selection", "Chest")),
|
||||
std::make_pair(from_headset::body_part_mask::left_elbow, _C("virtual body tracker selection", "Left elbow")),
|
||||
std::make_pair(from_headset::body_part_mask::right_elbow, _C("virtual body tracker selection", "Right elbow")),
|
||||
std::make_pair(from_headset::body_part_mask::hip, _C("virtual body tracker selection", "Hip")),
|
||||
std::make_pair(from_headset::body_part_mask::left_knee, _C("virtual body tracker selection", "Left knee")),
|
||||
std::make_pair(from_headset::body_part_mask::right_knee, _C("virtual body tracker selection", "Right knee")),
|
||||
std::make_pair(from_headset::body_part_mask::left_foot, _C("virtual body tracker selection", "Left foot")),
|
||||
std::make_pair(from_headset::body_part_mask::right_foot, _C("virtual body tracker selection", "Right foot")),
|
||||
})
|
||||
{
|
||||
if (body_tracker == xr::body_tracker_type::fb and bit > from_headset::body_part_mask::hip)
|
||||
break;
|
||||
body_parts_default.push_back((default_config.body_part_mask & std::to_underlying(bit)) != 0);
|
||||
body_parts_names.push_back(name);
|
||||
body_parts_bit.push_back(bit);
|
||||
}
|
||||
|
||||
bool changed = false;
|
||||
if (body_tracker != xr::body_tracker_type::none)
|
||||
{
|
||||
list.push_back({
|
||||
.id = "##body",
|
||||
.label = _C("setting name", "Body tracking"),
|
||||
.description = body_tracker == xr::body_tracker_type::fb or body_tracker == xr::body_tracker_type::meta
|
||||
? _("Requires 'Hand and body tracking' to be enabled in the Quest movement tracking settings, otherwise body data will be guessed from controller and headset positions.")
|
||||
: _("Stream body joint positions to the PC."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.check_feature(feature::body_tracking); },
|
||||
.set_bool = [&config](bool v) { config.set_feature(feature::body_tracking, v); },
|
||||
.default_bool = default_config.check_feature(feature::body_tracking),
|
||||
.enabled = [&ctx] { return not ctx.in_game; },
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
|
||||
list.push_back({
|
||||
.id = "##body_tracking_parts",
|
||||
.label = _C("setting name", "Virtual body trackers"),
|
||||
.description = _("Create virtual tracker devices."),
|
||||
.ui = ui_kind::combo_multi,
|
||||
.get_multi = [&config, &body_parts_bit](int index) {
|
||||
const auto underlying = std::to_underlying(body_parts_bit[index]);
|
||||
return config.body_part_mask & underlying; },
|
||||
.set_multi = [&config, &body_parts_bit, &changed](int index, bool value) {
|
||||
const auto underlying = std::to_underlying(body_parts_bit[index]);
|
||||
if (value)
|
||||
config.body_part_mask |= underlying;
|
||||
else
|
||||
config.body_part_mask &= ~underlying;
|
||||
config.save();
|
||||
changed = true; },
|
||||
.options = [&body_parts_names]() { return body_parts_names; },
|
||||
.title = _C("setting name", "Virtual body trackers"),
|
||||
.default_multi = body_parts_default,
|
||||
.disabled_tooltip = disconnect_tip,
|
||||
});
|
||||
}
|
||||
|
||||
ui::page_header(_cS("page header title", "Tracking"), _cS("page header subtitle", "Body and input tracking sent to the PC."));
|
||||
render_settings(ctx, "##tracking", list);
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
void settings_system(const settings_context & ctx)
|
||||
{
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
std::vector<setting> list;
|
||||
|
||||
auto language_name = [](const std::locale & loc = std::locale()) {
|
||||
return boost::locale::pgettext("language selection, replace with the name of the language", "English", loc);
|
||||
};
|
||||
std::vector<std::tuple<std::string, std::locale, std::string>> languages;
|
||||
for (const auto & msg_info: get_locales())
|
||||
{
|
||||
std::string code = msg_info.language;
|
||||
if (not msg_info.country.empty())
|
||||
code += "_" + msg_info.country;
|
||||
std::locale loc(std::locale(), boost::locale::gnu_gettext::create_messages_facet<char>(msg_info));
|
||||
languages.emplace_back(language_name(loc), loc, std::move(code));
|
||||
}
|
||||
std::ranges::sort(languages, [](auto & l, auto & r) { return std::get<0>(l) < std::get<0>(r); });
|
||||
|
||||
auto language_index = [languages](const configuration & cfg) {
|
||||
if (cfg.locale != "")
|
||||
for (size_t i = 0; i < languages.size(); ++i)
|
||||
if (std::get<2>(languages[i]) == cfg.locale)
|
||||
return int(i) + 1;
|
||||
return 0;
|
||||
};
|
||||
|
||||
list.push_back({
|
||||
.id = "##language",
|
||||
.label = _("Language"),
|
||||
.description = _C("setting name", "Interface language."),
|
||||
.ui = ui_kind::combo,
|
||||
.get_int = [&config, language_index] { return language_index(config); },
|
||||
.set_int = [&config, languages](int v) {
|
||||
config.locale = v == 0 ? "" : std::get<2>(languages[v - 1]);
|
||||
config.save();
|
||||
application::instance().load_locale(); },
|
||||
.options = [languages] {
|
||||
std::vector<std::string> opts;
|
||||
opts.push_back(_C("item in the interface language combobox", "System language"));
|
||||
for (const auto & [lang, loc, code]: languages)
|
||||
opts.push_back(lang);
|
||||
return opts; },
|
||||
.title = _("Language"),
|
||||
.default_int = language_index(default_config),
|
||||
});
|
||||
|
||||
#ifdef __ANDROID__
|
||||
if (application::get_hmd_traits().usb_net)
|
||||
list.push_back({
|
||||
.id = "##usbnet",
|
||||
.label = _C("setting name", "USB networking"),
|
||||
.description = _("Enables connection by USB without ADB or developer mode.\nMake sure the server allows IPv6 link-local only connections."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.usb_network; },
|
||||
.set_bool = [&config](bool v) { config.usb_network = v;config.save(); application::instance().set_usb_networking(v); },
|
||||
.default_bool = default_config.usb_network,
|
||||
});
|
||||
#endif
|
||||
|
||||
list.push_back({
|
||||
.id = "##extended",
|
||||
.label = _C("setting name", "Extended configuration"),
|
||||
.description = _("Allows unsafe configuration values, use at your own risk."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.extended_config; },
|
||||
.set_bool = [&config](bool v) { config.extended_config = v; config.save(); },
|
||||
.default_bool = default_config.extended_config,
|
||||
});
|
||||
|
||||
if (ctx.instance.has_extension(XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME))
|
||||
{
|
||||
list.push_back({
|
||||
.id = "##high_power",
|
||||
.label = _("High power mode"),
|
||||
.description = _("Increase power usage to allow higher resolution and refresh rate. Drains battery and runs hot."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config] { return config.high_power_mode; },
|
||||
.set_bool = [&config](bool v) { config.high_power_mode = v; config.save(); },
|
||||
.default_bool = default_config.high_power_mode,
|
||||
});
|
||||
}
|
||||
|
||||
bool disable_instream_gui = false;
|
||||
bool disable_instream_gui_popup_open = ImGui::IsPopupOpen("confirm disable in stream gui");
|
||||
list.push_back({
|
||||
.id = "##stream_gui",
|
||||
.label = _C("setting name", "In-stream window"),
|
||||
.description = _("Enables the configuration window to be shown while the game is streaming. If enabled, the window is activated by pressing both thumbsticks."),
|
||||
.ui = ui_kind::toggle,
|
||||
.get_bool = [&config, &disable_instream_gui_popup_open] { return config.enable_stream_gui and not disable_instream_gui_popup_open; },
|
||||
.set_bool = [&ctx, &config, &disable_instream_gui](bool v) {
|
||||
if (ctx.in_game and not v)
|
||||
{
|
||||
disable_instream_gui = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
config.enable_stream_gui = v;
|
||||
config.save();
|
||||
} },
|
||||
.default_bool = default_config.enable_stream_gui,
|
||||
});
|
||||
|
||||
ui::page_header(_cS("page header title", "System"), _cS("page header suibtitle", "Language and advanced options."));
|
||||
render_settings(ctx, "##system", list);
|
||||
|
||||
if (disable_instream_gui)
|
||||
ImGui::OpenPopup("confirm disable in stream gui");
|
||||
}
|
||||
|
||||
void settings_theme(const settings_context & ctx)
|
||||
{
|
||||
ui::theme & theme = ui::current();
|
||||
auto & config = ctx.config;
|
||||
auto & default_config = ctx.default_config;
|
||||
|
||||
ui::page_header(_cS("page header title", "Theme"), _cS("page header subtitle", "Accent color, palette and sizing of the interface."));
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ui::metrics::card_item_spacing);
|
||||
const float control_w = ui::metrics::setting_control_width;
|
||||
|
||||
ui::begin_card("##theme");
|
||||
{
|
||||
// Accent
|
||||
ImGui::TextUnformatted(_cS("setting name", "Accent color"));
|
||||
ImGui::Dummy({0, 2});
|
||||
for (const auto & swatch: ui::accent_swatches())
|
||||
{
|
||||
const bool selected = theme.accent.x == swatch.base.x and theme.accent.y == swatch.base.y and theme.accent.z == swatch.base.z;
|
||||
const auto flags = ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoBorder | (selected ? 0 : ImGuiColorEditFlags_NoDragDrop);
|
||||
if (ImGui::ColorButton(swatch.name, swatch.base, flags, {ImGui::GetFrameHeight() * 1.4f, ImGui::GetFrameHeight() * 1.4f}))
|
||||
{
|
||||
ui::set_accent(swatch);
|
||||
config.theme_accent = swatch.name;
|
||||
config.save();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
}
|
||||
ImGui::NewLine();
|
||||
|
||||
ui::row_separator();
|
||||
|
||||
// Preset
|
||||
const auto preset_list = ui::presets();
|
||||
std::vector<ui::combo_item> preset_items;
|
||||
for (const auto & p: preset_list)
|
||||
preset_items.push_back({p.localized_name.c_str()});
|
||||
|
||||
// seed the selection from the saved preset so the box matches what is applied
|
||||
auto f = [&](const configuration & cfg) {
|
||||
for (int i = 0; i < int(preset_list.size()); ++i)
|
||||
if (preset_list[i].name == cfg.theme_preset)
|
||||
return i;
|
||||
return 1; // dark_default
|
||||
};
|
||||
static int preset = f(config);
|
||||
static const int preset_default = f(default_config);
|
||||
|
||||
ui::setting_label(_cS("setting name", "Preset"), _cS("setting description", "Surface and background palette"), control_w);
|
||||
if (ui::combo("##preset", _("Theme preset"), preset_items, &preset, control_w, &preset_default))
|
||||
{
|
||||
// keep the accent across a preset change, only the surfaces swap
|
||||
const ImVec4 keep_accent = theme.accent;
|
||||
const ImVec4 keep_hover = theme.accent_hovered;
|
||||
const ImVec4 keep_active = theme.accent_active;
|
||||
ui::set_theme(preset_list[preset]);
|
||||
theme.accent = keep_accent;
|
||||
theme.accent_hovered = keep_hover;
|
||||
theme.accent_active = keep_active;
|
||||
config.theme_preset = preset_list[preset].name;
|
||||
config.save();
|
||||
}
|
||||
|
||||
ui::row_separator();
|
||||
|
||||
// Rounding
|
||||
static const int rounding_default = default_config.theme_rounding;
|
||||
int rounding = int(theme.rounding);
|
||||
ui::setting_label(_cS("setting label", "Rounding"), _cS("setting description", "Corner radius of controls"), control_w);
|
||||
if (ui::slider_int("##rounding", &rounding, 0, 20, "%d px", {control_w, 0}, &rounding_default))
|
||||
{
|
||||
theme.rounding = float(rounding);
|
||||
config.theme_rounding = theme.rounding;
|
||||
config.save();
|
||||
}
|
||||
|
||||
ui::row_separator();
|
||||
|
||||
static const int card_rounding_default = 14;
|
||||
int card_rounding = int(theme.card_rounding);
|
||||
ui::setting_label(_cS("setting label", "Card rounding"), _cS("setting description", "Corner radius of panels"), control_w);
|
||||
if (ui::slider_int("##card_rounding", &card_rounding, 0, 28, "%d px", {control_w, 0}, &card_rounding_default))
|
||||
{
|
||||
theme.card_rounding = float(card_rounding);
|
||||
config.theme_card_rounding = theme.card_rounding;
|
||||
config.save();
|
||||
}
|
||||
|
||||
ui::row_separator();
|
||||
|
||||
// global font scale, 100% is the design default
|
||||
static const int font_scale_default = 100;
|
||||
int font_scale = int(theme.font_scale * 100);
|
||||
ui::setting_label(_cS("setting name", "Text size"), _cS("setting description", "Global font scale"), control_w);
|
||||
if (ui::slider_int("##font_scale", &font_scale, 60, 140, "%d%%", {control_w, 0}, &font_scale_default))
|
||||
{
|
||||
theme.font_scale = float(font_scale) / 100.f;
|
||||
config.theme_font_scale = theme.font_scale;
|
||||
config.save();
|
||||
}
|
||||
|
||||
ui::row_separator();
|
||||
|
||||
// Panel transparency, independent of the selected preset
|
||||
static const int opacity_default = int(default_config.theme_background_alpha * 100 + 0.5);
|
||||
int opacity = int(ui::background_alpha() * 100 + 0.5);
|
||||
ui::setting_label(_cS("setting name", "Panel opacity"), _cS("setting description", "Opacity of the panel and card backgrounds"), control_w);
|
||||
if (ui::slider_int("##opacity", &opacity, 20, 100, "%d%%", {control_w, 0}, &opacity_default))
|
||||
{
|
||||
ui::background_alpha() = float(opacity) / 100.f;
|
||||
config.theme_background_alpha = ui::background_alpha();
|
||||
config.save();
|
||||
}
|
||||
|
||||
ui::end_card();
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_ItemSpacing
|
||||
}
|
||||
|
||||
} // namespace wivrn::gui
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
|
||||
class configuration;
|
||||
class imgui_context;
|
||||
|
||||
namespace xr
|
||||
{
|
||||
class instance;
|
||||
class session;
|
||||
class system;
|
||||
} // namespace xr
|
||||
|
||||
namespace wivrn::gui
|
||||
{
|
||||
|
||||
// what the shared settings pages need, in the lobby or the in-stream window
|
||||
struct settings_context
|
||||
{
|
||||
configuration & config;
|
||||
configuration & default_config;
|
||||
xr::instance & instance;
|
||||
xr::session & session;
|
||||
xr::system & system;
|
||||
imgui_context & imgui_ctx;
|
||||
|
||||
// recommended per-eye render resolution, for the resolution description
|
||||
uint32_t recommended_width = 0;
|
||||
uint32_t recommended_height = 0;
|
||||
|
||||
// streaming: connection-time settings are disabled, in-stream controls appear
|
||||
bool in_game = false;
|
||||
|
||||
std::optional<bool> server_hid_forwarding;
|
||||
|
||||
// in-stream hooks, empty in the lobby
|
||||
std::function<void()> on_streaming_changed; // refresh rate / spacewarp / bitrate
|
||||
std::function<void()> enter_foveation_adjust; // thumbstick foveation sub-mode
|
||||
std::function<void()> on_foveation_override_changed; // foveation override toggled
|
||||
};
|
||||
|
||||
void settings_video(const settings_context &);
|
||||
void settings_streaming(const settings_context &);
|
||||
void settings_post_processing(const settings_context &);
|
||||
void settings_audio(const settings_context &);
|
||||
void settings_devices(const settings_context &);
|
||||
bool settings_tracking(const settings_context &);
|
||||
void settings_system(const settings_context &);
|
||||
void settings_theme(const settings_context &);
|
||||
|
||||
} // namespace wivrn::gui
|
||||
+46
-30
@@ -64,6 +64,10 @@
|
||||
#include "vk/renderdoc.h"
|
||||
#endif
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include "android/usb.h"
|
||||
#endif
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
static bool force_autoconnect = false;
|
||||
@@ -121,24 +125,19 @@ static glm::quat compute_gui_orientation(glm::vec3 head_position, glm::vec3 new_
|
||||
|
||||
void scenes::lobby::move_gui(glm::vec3 head_position, glm::vec3 new_gui_position)
|
||||
{
|
||||
using constants::gui::popup_position;
|
||||
using constants::lobby::keyboard_pitch;
|
||||
using constants::lobby::keyboard_position;
|
||||
using constants::lobby::popup_position;
|
||||
|
||||
auto q = compute_gui_orientation(head_position, new_gui_position);
|
||||
auto M = glm::mat3_cast(q); // plane-to-world transform
|
||||
|
||||
// Main window
|
||||
imgui_ctx->layers()[0].position = new_gui_position;
|
||||
imgui_ctx->layers()[0].orientation = q;
|
||||
|
||||
// Popup
|
||||
imgui_ctx->layers()[1].position = new_gui_position + M * popup_position;
|
||||
imgui_ctx->layers()[1].orientation = q;
|
||||
|
||||
// Keyboard
|
||||
imgui_ctx->layers()[2].position = new_gui_position + M * keyboard_position;
|
||||
imgui_ctx->layers()[2].orientation = q * glm::quat(cos(keyboard_pitch / 2), sin(keyboard_pitch / 2), 0, 0);
|
||||
// Popup and keyboard track the main window
|
||||
imgui_ctx->place_layer_relative(1, 0, popup_position);
|
||||
imgui_ctx->place_layer_relative(2, 0, keyboard_position, glm::quat(cos(keyboard_pitch / 2), sin(keyboard_pitch / 2), 0, 0));
|
||||
}
|
||||
|
||||
scenes::lobby::lobby() :
|
||||
@@ -170,6 +169,8 @@ scenes::lobby::lobby() :
|
||||
|
||||
keyboard.set_layout(config.virtual_keyboard_layout);
|
||||
|
||||
apply_theme_settings();
|
||||
|
||||
if (config.first_run)
|
||||
current_tab = tab::first_run;
|
||||
|
||||
@@ -201,6 +202,16 @@ static std::string ip_address_to_string(const in6_addr & addr)
|
||||
return buf;
|
||||
}
|
||||
|
||||
static std::string ip_address_to_string(const sockaddr_in & addr)
|
||||
{
|
||||
return ip_address_to_string(addr.sin_addr);
|
||||
}
|
||||
|
||||
static std::string ip_address_to_string(const sockaddr_in6 & addr)
|
||||
{
|
||||
return ip_address_to_string(addr.sin6_addr);
|
||||
}
|
||||
|
||||
std::unique_ptr<wivrn_session> scenes::lobby::connect_to_session(wivrn_discover::service service, bool manual_connection)
|
||||
{
|
||||
if (!manual_connection)
|
||||
@@ -242,12 +253,18 @@ std::unique_ptr<wivrn_session> scenes::lobby::connect_to_session(wivrn_discover:
|
||||
{
|
||||
switch (i->ai_family)
|
||||
{
|
||||
case AF_INET:
|
||||
service.addresses.push_back(((sockaddr_in *)i->ai_addr)->sin_addr);
|
||||
break;
|
||||
case AF_INET6:
|
||||
service.addresses.push_back(((sockaddr_in6 *)i->ai_addr)->sin6_addr);
|
||||
break;
|
||||
case AF_INET: {
|
||||
auto addr = (sockaddr_in *)i->ai_addr;
|
||||
addr->sin_port = htons(service.port);
|
||||
service.addresses.push_back({.address = *addr});
|
||||
}
|
||||
break;
|
||||
case AF_INET6: {
|
||||
auto addr = (sockaddr_in6 *)i->ai_addr;
|
||||
addr->sin6_port = htons(service.port);
|
||||
service.addresses.push_back({.address = *addr});
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -255,22 +272,22 @@ std::unique_ptr<wivrn_session> scenes::lobby::connect_to_session(wivrn_discover:
|
||||
}
|
||||
|
||||
std::string error;
|
||||
for (const std::variant<in_addr, in6_addr> & address: service.addresses)
|
||||
for (const auto & entry: service.addresses)
|
||||
{
|
||||
std::string address_string = std::visit([](auto & address) {
|
||||
std::string address_string = std::visit([](const auto & address) {
|
||||
return ip_address_to_string(address);
|
||||
},
|
||||
address);
|
||||
entry.address);
|
||||
|
||||
struct connection_cancelled
|
||||
{};
|
||||
|
||||
try
|
||||
{
|
||||
spdlog::debug("Connection to {}", address_string);
|
||||
spdlog::info("Connection to {}", address_string);
|
||||
|
||||
return std::visit([this, &service](auto & address) {
|
||||
return std::make_unique<wivrn_session>(address, service.port, service.tcp_only, keypair, [&](int fd) {
|
||||
return std::make_unique<wivrn_session>(address, service.tcp_only, keypair, [&](int fd) {
|
||||
auto request = pin_request.lock();
|
||||
request->pin_requested = true;
|
||||
request->pin_cancelled = false;
|
||||
@@ -312,7 +329,7 @@ std::unique_ptr<wivrn_session> scenes::lobby::connect_to_session(wivrn_discover:
|
||||
return request->pin;
|
||||
});
|
||||
},
|
||||
address);
|
||||
entry.address);
|
||||
}
|
||||
catch (connection_cancelled)
|
||||
{
|
||||
@@ -343,6 +360,11 @@ void scenes::lobby::update_server_list()
|
||||
if (not discover)
|
||||
return;
|
||||
|
||||
#ifdef __ANDROID__
|
||||
if (usb_link_properties_changed())
|
||||
discover.emplace();
|
||||
#endif
|
||||
|
||||
std::vector<wivrn_discover::service> discovered_services = discover->get_services();
|
||||
|
||||
// TODO: only if discovered_services changed
|
||||
@@ -633,7 +655,7 @@ static void stick_finger_to_gui(std::array<xr::hand_tracker::joint, XR_HAND_JOIN
|
||||
std::vector<std::pair<glm::vec3, float>> intersections; // Target position of the finger tip, distance to the GUI plane
|
||||
for (const imgui_context::window_viewport & layer: layers)
|
||||
{
|
||||
// Ignore layers that are not absolutely positionned
|
||||
// Ignore layers that are not absolutely positioned
|
||||
if (layer.space != xr::spaces::world)
|
||||
continue;
|
||||
|
||||
@@ -1066,20 +1088,14 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
if (composition_layer_depth_test_supported)
|
||||
set_depth_test(true, XR_COMPARE_OP_ALWAYS_FB);
|
||||
|
||||
bool dim_gui = imgui_ctx->is_modal_popup_shown() and composition_layer_color_scale_bias_supported;
|
||||
for (auto & [z_index, layer]: imgui_layers)
|
||||
{
|
||||
if (z_index < constants::lobby::zindex_recenter_tip)
|
||||
{
|
||||
add_quad_layer(layer.layerFlags, layer.space, layer.eyeVisibility, layer.subImage, layer.pose, layer.size);
|
||||
|
||||
if (dim_gui)
|
||||
set_color_scale_bias(constants::lobby::dimming_scale, constants::lobby::dimming_bias);
|
||||
|
||||
if (composition_layer_depth_test_supported)
|
||||
set_depth_test(true, XR_COMPARE_OP_LESS_OR_EQUAL_FB);
|
||||
|
||||
dim_gui = false; // Only dim the main window
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1131,7 +1147,7 @@ void scenes::lobby::on_focused()
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot load environment from {}: {}, reverting to default", config.environment_model, e.what());
|
||||
config.environment_model = configuration{}.environment_model;
|
||||
config.environment_model = application::get_default_config().environment_model;
|
||||
lobby_entity = add_gltf(config.environment_model, layer_lobby).first;
|
||||
config.save();
|
||||
}
|
||||
@@ -1319,7 +1335,7 @@ void scenes::lobby::on_focused()
|
||||
.gltf_url = "default",
|
||||
.builtin = true,
|
||||
.override_order = -1,
|
||||
.local_gltf_path = configuration{}.environment_model,
|
||||
.local_gltf_path = application::get_default_config().environment_model,
|
||||
.screenshot = imgui_ctx->load_texture("assets://default-environment.ktx2")});
|
||||
|
||||
std::ranges::sort(local_environments, std::less{});
|
||||
|
||||
+16
-3
@@ -56,6 +56,7 @@ class lobby : public scene_impl<lobby>
|
||||
int add_server_window_port = wivrn::default_port;
|
||||
bool add_server_tcp_only = false;
|
||||
std::string add_server_cookie;
|
||||
std::string delete_server_cookie; // server pending a delete confirmation
|
||||
|
||||
utils::future<std::unique_ptr<wivrn_session>, std::string> async_session;
|
||||
std::optional<std::string> async_error;
|
||||
@@ -118,9 +119,15 @@ class lobby : public scene_impl<lobby>
|
||||
{
|
||||
first_run,
|
||||
server_list,
|
||||
settings,
|
||||
video,
|
||||
audio,
|
||||
streaming,
|
||||
post_processing,
|
||||
devices,
|
||||
tracking,
|
||||
system,
|
||||
customize,
|
||||
theme,
|
||||
#if WIVRN_CLIENT_DEBUG_MENU
|
||||
debug,
|
||||
#endif
|
||||
@@ -217,16 +224,22 @@ class lobby : public scene_impl<lobby>
|
||||
std::pair<entt::entity, int> debug_primitive_to_highlight = {entt::null, 0};
|
||||
#endif
|
||||
|
||||
void draw_features_status(XrTime predicted_display_time);
|
||||
void gui_connecting(locked_notifiable<pin_request_data> & request);
|
||||
void gui_enter_pin(locked_notifiable<pin_request_data> & request);
|
||||
void gui_connected(XrTime predicted_display_time);
|
||||
void gui_disconnected();
|
||||
void gui_server_list();
|
||||
void gui_new_server();
|
||||
void gui_settings();
|
||||
void gui_video();
|
||||
void gui_streaming();
|
||||
void gui_audio();
|
||||
void gui_devices();
|
||||
void gui_tracking();
|
||||
void gui_system();
|
||||
void gui_post_processing();
|
||||
void gui_customize(XrTime predicted_display_time);
|
||||
void gui_theme();
|
||||
void apply_theme_settings(); // push the saved theme config into the global theme
|
||||
void gui_debug_node_hierarchy(entt::entity root = entt::null);
|
||||
void gui_debug();
|
||||
void gui_about();
|
||||
|
||||
+471
-1070
File diff suppressed because it is too large
Load Diff
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "lobby.h"
|
||||
|
||||
#include "application.h"
|
||||
@@ -28,6 +26,8 @@
|
||||
#include "imspinner.h"
|
||||
#include "render/image_writer.h"
|
||||
#include "render/scene_renderer.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include "render/ui_widgets.h"
|
||||
#include "utils/files.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/json_string.h"
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <spdlog/fmt/chrono.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "IconsFontAwesome6.h"
|
||||
#include "IconsFontAwesome7.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
@@ -337,278 +337,140 @@ void scenes::lobby::download_environment_list()
|
||||
|
||||
scenes::lobby::environment_item_action scenes::lobby::environment_item(environment_model & model, bool download_screenshot)
|
||||
{
|
||||
namespace ui = wivrn::ui;
|
||||
environment_item_action action = environment_item_action::none;
|
||||
ImGuiWindow * window = ImGui::GetCurrentWindow();
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
bool local = std::ranges::contains(local_environments, model.name, &environment_model::name);
|
||||
const bool local = std::ranges::contains(local_environments, model.name, &environment_model::name);
|
||||
|
||||
static std::unordered_map<std::string, float> expanded_height;
|
||||
|
||||
float width = ImGui::GetWindowSize().x - ImGui::GetCurrentWindow()->ScrollbarSizes.x - 2 * ImGui::GetCurrentWindow()->WindowPadding.x;
|
||||
ImVec2 screenshot_size{256, 256};
|
||||
ImVec2 default_selectable_size{
|
||||
width,
|
||||
screenshot_size.y + 2 * style.FramePadding.y // Screenshot size including padding
|
||||
// + style.ItemSpacing.y // Spacing
|
||||
// + ImGui::GetFontSize() + 2 * style.FramePadding.y // Progress bar height
|
||||
};
|
||||
ImVec2 selectable_size = default_selectable_size;
|
||||
|
||||
bool expanded = false;
|
||||
if (auto iter = expanded_height.find(model.gltf_url); iter != expanded_height.end())
|
||||
// lazily load the screenshot texture
|
||||
if (model.screenshot == 0)
|
||||
{
|
||||
selectable_size.y = std::max(selectable_size.y, iter->second);
|
||||
expanded = true;
|
||||
}
|
||||
|
||||
ImTextureID screenshot = model.screenshot;
|
||||
if (ImRect{window->DC.CursorPos, window->DC.CursorPos + selectable_size}.Overlaps(window->ClipRect))
|
||||
{
|
||||
if (screenshot == 0)
|
||||
if (download_screenshot)
|
||||
{
|
||||
if (download_screenshot)
|
||||
if (model.screenshot_url != "" and not try_get_download_handle(model.screenshot_url))
|
||||
{
|
||||
if (model.screenshot_url != "" and not try_get_download_handle(model.screenshot_url))
|
||||
{
|
||||
spdlog::info("Downloading {}", model.screenshot_url);
|
||||
|
||||
download(model.screenshot_url,
|
||||
[this, url = model.screenshot_url](libcurl::curl_handle & handle) {
|
||||
try
|
||||
{
|
||||
auto png = handle.get_response_bytes();
|
||||
auto screenshot = imgui_ctx->load_texture(png);
|
||||
|
||||
for (auto & model: downloadable_environments)
|
||||
{
|
||||
if (model.screenshot_url == url)
|
||||
{
|
||||
model.screenshot = screenshot;
|
||||
model.screenshot_png = std::vector<std::byte>{png.begin(), png.end()};
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot load image from {}: {}", handle.get_url(), e.what());
|
||||
for (auto & model: downloadable_environments)
|
||||
{
|
||||
if (model.screenshot_url == url)
|
||||
{
|
||||
model.screenshot_url = "";
|
||||
model.screenshot = default_environment_screenshot;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
spdlog::info("Downloading {}", model.screenshot_url);
|
||||
download(model.screenshot_url, [this, url = model.screenshot_url](libcurl::curl_handle & handle) {
|
||||
try
|
||||
{
|
||||
auto png = handle.get_response_bytes();
|
||||
auto tex = imgui_ctx->load_texture(png);
|
||||
for (auto & m: downloadable_environments)
|
||||
if (m.screenshot_url == url)
|
||||
{
|
||||
m.screenshot = tex;
|
||||
m.screenshot_png = std::vector<std::byte>{png.begin(), png.end()};
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot load image from {}: {}", handle.get_url(), e.what());
|
||||
for (auto & m: downloadable_environments)
|
||||
if (m.screenshot_url == url)
|
||||
{
|
||||
m.screenshot_url = "";
|
||||
m.screenshot = default_environment_screenshot;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
else if (model.local_screenshot_path != "" and std::filesystem::exists(model.local_screenshot_path))
|
||||
}
|
||||
else if (model.local_screenshot_path != "" and std::filesystem::exists(model.local_screenshot_path))
|
||||
{
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
spdlog::info("Loading {}", model.local_screenshot_path.native());
|
||||
screenshot = model.screenshot = imgui_ctx->load_texture(utils::mapped_file{model.local_screenshot_path});
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot load screenshot {}: {}", model.local_screenshot_path.native(), e.what());
|
||||
std::error_code ec;
|
||||
std::filesystem::remove(model.local_screenshot_path, ec); // Ignore errors
|
||||
model.local_screenshot_path = ""; // Avoid subsequent loading errors
|
||||
model.screenshot = default_environment_screenshot;
|
||||
}
|
||||
model.screenshot = imgui_ctx->load_texture(utils::mapped_file{model.local_screenshot_path});
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot load screenshot {}: {}", model.local_screenshot_path.native(), e.what());
|
||||
std::error_code ec;
|
||||
std::filesystem::remove(model.local_screenshot_path, ec);
|
||||
model.local_screenshot_path = "";
|
||||
model.screenshot = default_environment_screenshot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto backup_cursor = ImGui::GetCursorScreenPos();
|
||||
const auto & config = application::get_config();
|
||||
bool selected = (config.passthrough_enabled and model.local_gltf_path == "") or
|
||||
(not config.passthrough_enabled and config.environment_model == model.local_gltf_path);
|
||||
const bool selected = (config.passthrough_enabled and model.local_gltf_path == "") or
|
||||
(not config.passthrough_enabled and config.environment_model == model.local_gltf_path);
|
||||
|
||||
ImGui::SetNextItemAllowOverlap();
|
||||
// Use ImGuiSelectableFlags_AllowDoubleClick to have ImGuiButtonFlags_PressedOnClickRelease in ImGui::Selectable
|
||||
if (ImGui::Selectable(("##" + model.gltf_url).c_str(), &selected, ImGuiSelectableFlags_AllowDoubleClick, selectable_size))
|
||||
{
|
||||
if (local)
|
||||
action = environment_item_action::use_model;
|
||||
else
|
||||
action = environment_item_action::download_model;
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
auto end_cursor = ImGui::GetCursorScreenPos();
|
||||
|
||||
// Remove the height of the progress bar if a transfer is in progress
|
||||
float text_clip_height = selectable_size.y + style.FramePadding.y;
|
||||
if (auto handle = try_get_download_handle(model.gltf_url); handle and handle->get_state() == libcurl::state::transferring)
|
||||
text_clip_height -= ImGui::GetFontSize() + 2 * style.FramePadding.y + style.ItemSpacing.y;
|
||||
|
||||
// Display the screenshot
|
||||
ImGui::SetCursorScreenPos(backup_cursor + ImVec2(style.FramePadding.x, 0));
|
||||
ImGui::Image(screenshot ? screenshot : default_environment_screenshot, screenshot_size);
|
||||
|
||||
ImGui::PushClipRect(backup_cursor, backup_cursor + ImVec2(selectable_size.x, text_clip_height), true);
|
||||
float indent = screenshot_size.x + style.FramePadding.x + 2 * style.ImageBorderSize + style.ItemSpacing.x;
|
||||
|
||||
// Display the text
|
||||
std::pair<std::string, ImVec2> text_name;
|
||||
std::pair<std::string, ImVec2> text_author;
|
||||
std::pair<std::string, ImVec2> text_description;
|
||||
std::pair<std::string, ImVec2> text_filesize;
|
||||
|
||||
text_name.first = model.builtin ? _(model.name.c_str()) : model.name;
|
||||
// subtitle: author / description / size, one per line
|
||||
std::string subtitle;
|
||||
auto add_line = [&](const std::string & s) {
|
||||
if (s.empty())
|
||||
return;
|
||||
if (not subtitle.empty())
|
||||
subtitle += "\n";
|
||||
subtitle += s;
|
||||
};
|
||||
if (model.author != "")
|
||||
text_author.first = fmt::format(_F("Author: {}"), model.author);
|
||||
add_line(fmt::format(_F("Author: {}"), model.author));
|
||||
if (model.description != "")
|
||||
text_description.first = model.description;
|
||||
add_line(model.builtin ? std::string(_(model.description.c_str())) : model.description);
|
||||
if (not model.builtin)
|
||||
text_filesize.first = fmt::format(_F("Size: {:.1f} MB"), model.size * 1.0e-6);
|
||||
add_line(fmt::format(_F("Size: {:.1f} MB"), model.size * 1.0e-6));
|
||||
|
||||
const float wrap_width = selectable_size.x - indent - style.FramePadding.x;
|
||||
const char * icon = model.local_gltf_path == "" ? ICON_FA_VIDEO : (model.builtin ? ICON_FA_TABLE_CELLS : ICON_FA_IMAGE);
|
||||
const std::string title = model.builtin ? std::string(_(model.name.c_str())) : model.name;
|
||||
|
||||
// clang-format off
|
||||
text_name.second = ImGui::CalcTextSize(text_name.first.data(), text_name.first.data() + text_name.first.size(), false, wrap_width);
|
||||
text_author.second = ImGui::CalcTextSize(text_author.first.data(), text_author.first.data() + text_author.first.size(), false, wrap_width);
|
||||
text_description.second = ImGui::CalcTextSize(text_description.first.data(), text_description.first.data() + text_description.first.size(), false, wrap_width);
|
||||
text_filesize.second = ImGui::CalcTextSize(text_filesize.first.data(), text_filesize.first.data() + text_filesize.first.size(), false, wrap_width);
|
||||
// clang-format on
|
||||
ImGui::PushID(model.gltf_url.c_str());
|
||||
const float bh = ImGui::GetFrameHeight() * ui::metrics::control_height;
|
||||
auto handle = try_get_download_handle(model.gltf_url);
|
||||
const bool transferring = handle and handle->get_state() == libcurl::state::transferring;
|
||||
|
||||
ImGui::SetCursorScreenPos(backup_cursor);
|
||||
// measure the trailing control so the row body click area can exclude it
|
||||
const std::string active_l = ui::icon_label(ICON_FA_CHECK, _C("chip displayed next to the selected environment in the settings", "Active"));
|
||||
const ImVec2 active_sz = ui::chip_size(active_l);
|
||||
float trailing = 0;
|
||||
if (selected)
|
||||
trailing = active_sz.x + ui::metrics::list_row_pad;
|
||||
else if (transferring or (local and not model.builtin))
|
||||
trailing = bh + ui::metrics::list_row_pad;
|
||||
|
||||
ImVec2 text_pos = backup_cursor + ImVec2(indent, 0);
|
||||
float text_height = 0;
|
||||
const auto row = ui::begin_list_row("##env", icon, model.screenshot, title, subtitle, selected, trailing, 0, true);
|
||||
if (row.clicked and not selected)
|
||||
action = local ? environment_item_action::use_model : environment_item_action::download_model;
|
||||
|
||||
ImGui::RenderTextWrapped(text_pos, text_name.first.data(), text_name.first.data() + text_name.first.size(), wrap_width);
|
||||
text_height += text_name.second.y + style.ItemSpacing.y;
|
||||
const float x = row.max.x;
|
||||
|
||||
if (text_author.first != "")
|
||||
if (selected)
|
||||
{
|
||||
ImGui::RenderTextWrapped(text_pos + ImVec2(0, text_height), text_author.first.data(), text_author.first.data() + text_author.first.size(), wrap_width);
|
||||
text_height += text_author.second.y + style.ItemSpacing.y;
|
||||
ImGui::SetCursorScreenPos(row.trailing(x, active_sz));
|
||||
ui::chip(active_l, ui::chip_style::success);
|
||||
}
|
||||
|
||||
if (text_description.first != "")
|
||||
else if (transferring)
|
||||
{
|
||||
ImGui::RenderTextWrapped(text_pos + ImVec2(0, text_height), text_description.first.data(), text_description.first.data() + text_description.first.size(), wrap_width);
|
||||
text_height += text_description.second.y + style.ItemSpacing.y;
|
||||
const int64_t total = handle->get_content_length() > 0 ? handle->get_content_length() : model.size;
|
||||
const float fraction = total > 0 ? float(handle->get_progress()) / float(total) : -1.f;
|
||||
ImGui::SetCursorScreenPos(row.trailing(x, {bh, bh}));
|
||||
if (ui::cancel_progress_button("##cancel", fraction, {bh, bh}, _S("Cancel")))
|
||||
handle->cancel();
|
||||
}
|
||||
|
||||
if (text_filesize.first != "")
|
||||
else if (local and not model.builtin)
|
||||
{
|
||||
ImGui::RenderTextWrapped(text_pos + ImVec2(0, text_height), text_filesize.first.data(), text_filesize.first.data() + text_filesize.first.size(), wrap_width);
|
||||
text_height += text_filesize.second.y + style.ItemSpacing.y;
|
||||
}
|
||||
|
||||
ImGui::PopClipRect();
|
||||
|
||||
// Display the expand/collapse button
|
||||
if (text_height > default_selectable_size.y - 2 * style.FramePadding.y)
|
||||
{
|
||||
const char * button_text = expanded ? ICON_FA_CHEVRON_UP : ICON_FA_CHEVRON_DOWN;
|
||||
auto expand_size = ImGui::CalcTextSize(button_text) + style.FramePadding * 2.0f;
|
||||
float radius = std::max(expand_size.x, expand_size.y) / 2;
|
||||
|
||||
ImGui::SetCursorScreenPos(ImVec2(
|
||||
backup_cursor.x + selectable_size.x / 2 - radius,
|
||||
backup_cursor.y + selectable_size.y + style.FramePadding.y - radius));
|
||||
|
||||
// Triple hash so that the button text is not used to compute the button ID and
|
||||
// avoid vibrating the controller when the text changes
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, radius);
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0));
|
||||
if (ImGui::Button((button_text + ("###expand-" + model.gltf_url)).c_str(), ImVec2(radius * 2, radius * 2)))
|
||||
{
|
||||
if (expanded)
|
||||
expanded_height.erase(model.gltf_url);
|
||||
else
|
||||
expanded_height[model.gltf_url] = text_height + 2 * style.FramePadding.y;
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_FrameRounding
|
||||
}
|
||||
|
||||
// Display the delete button
|
||||
if (local and not model.builtin)
|
||||
{
|
||||
auto delete_size = ImGui::CalcTextSize(ICON_FA_TRASH) + style.FramePadding * 2;
|
||||
ImGui::SetCursorScreenPos(ImVec2(
|
||||
backup_cursor.x + width - style.FramePadding.x - delete_size.x,
|
||||
backup_cursor.y));
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button((ICON_FA_TRASH "##delete-" + model.name).c_str()))
|
||||
ImGui::SetCursorScreenPos(row.trailing(x, {bh, bh}));
|
||||
if (ui::icon_button(ICON_FA_TRASH, {bh, bh}, false, _S("Delete this model")))
|
||||
action = environment_item_action::delete_model;
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Delete this model"));
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3);
|
||||
}
|
||||
// Display the download progress
|
||||
else if (auto handle = try_get_download_handle(model.gltf_url))
|
||||
|
||||
// surface download errors
|
||||
if (handle)
|
||||
{
|
||||
switch (handle->get_state())
|
||||
if (handle->get_state() == libcurl::state::error)
|
||||
{
|
||||
case libcurl::state::transferring: {
|
||||
ImVec2 cancel_size = ImGui::CalcTextSize(ICON_FA_STOP) + style.FramePadding * 2;
|
||||
|
||||
ImGui::SetCursorScreenPos(ImVec2(
|
||||
backup_cursor.x + screenshot_size.x + style.FramePadding.x + style.ItemSpacing.x,
|
||||
backup_cursor.y + selectable_size.y - (ImGui::GetFontSize() + 2 * style.FramePadding.y)));
|
||||
|
||||
float progress_width = width - cancel_size.x - screenshot_size.x - 2 * style.FramePadding.x - 2 * style.ItemSpacing.x;
|
||||
|
||||
if (handle->get_content_length() > 0)
|
||||
ImGui::ProgressBar(handle->get_progress() / (float)handle->get_content_length(), {progress_width, 0});
|
||||
else
|
||||
ImGui::ProgressBar(-ImGui::GetTime(), {progress_width, 0}); // Indeterminate progress bar
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button((ICON_FA_STOP "##" + model.name).c_str()))
|
||||
handle->cancel();
|
||||
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
break;
|
||||
}
|
||||
|
||||
case libcurl::state::error:
|
||||
if (handle->get_curl_code() == CURLE_HTTP_RETURNED_ERROR)
|
||||
{
|
||||
spdlog::error("HTTP error {} when downloading {}", handle->get_response_code(), handle->get_url());
|
||||
load_environment_status = fmt::format(
|
||||
_F("HTTP error {} when downloading {}"),
|
||||
handle->get_response_code(),
|
||||
handle->get_url());
|
||||
}
|
||||
else
|
||||
{
|
||||
spdlog::error("Curl error when downloading {}: {}", handle->get_url(), curl_easy_strerror(handle->get_curl_code()));
|
||||
load_environment_status = fmt::format(
|
||||
_F("Curl error when downloading {}\n{}: {}"),
|
||||
handle->get_url(),
|
||||
magic_enum::enum_name(handle->get_curl_code()),
|
||||
curl_easy_strerror(handle->get_curl_code()));
|
||||
}
|
||||
|
||||
handle->reset();
|
||||
break;
|
||||
|
||||
case libcurl::state::cancelled:
|
||||
handle->reset();
|
||||
break;
|
||||
|
||||
case libcurl::state::cancelling:
|
||||
case libcurl::state::reset:
|
||||
case libcurl::state::done:
|
||||
break;
|
||||
if (handle->get_curl_code() == CURLE_HTTP_RETURNED_ERROR)
|
||||
load_environment_status = fmt::format(_F("HTTP error {} when downloading {}"), handle->get_response_code(), handle->get_url());
|
||||
else
|
||||
load_environment_status = fmt::format(_F("Curl error when downloading {}\n{}: {}"), handle->get_url(), magic_enum::enum_name(handle->get_curl_code()), curl_easy_strerror(handle->get_curl_code()));
|
||||
handle->reset();
|
||||
}
|
||||
else if (handle->get_state() == libcurl::state::cancelled)
|
||||
handle->reset();
|
||||
}
|
||||
|
||||
ImGui::SetCursorScreenPos(end_cursor);
|
||||
ImGui::Dummy({});
|
||||
ui::end_list_row();
|
||||
ImGui::PopID();
|
||||
return action;
|
||||
}
|
||||
|
||||
@@ -640,46 +502,20 @@ void scenes::lobby::environment_list(std::vector<environment_model> & models, bo
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
|
||||
const auto & popup_layer = imgui_ctx->layers()[1];
|
||||
const glm::vec2 popup_layer_center = popup_layer.vp_origin + popup_layer.vp_size / 2;
|
||||
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, constants::style::window_padding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::window_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, constants::style::window_border_size);
|
||||
if (ImGui::BeginPopupModal("confirm delete model", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
if (environment_to_be_deleted)
|
||||
{
|
||||
ImGui::Text("%s", fmt::format(_F("Really delete {}?"), environment_to_be_deleted->name).c_str());
|
||||
|
||||
const auto & style = ImGui::GetStyle();
|
||||
auto cancel_text = _("Cancel");
|
||||
auto delete_text = _("Delete");
|
||||
auto cancel_size = ImGui::CalcTextSize(cancel_text.c_str()) + style.FramePadding * 2.0f;
|
||||
auto delete_size = ImGui::CalcTextSize(delete_text.c_str()) + style.FramePadding * 2.0f;
|
||||
|
||||
ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - cancel_size.x - style.ItemSpacing.x - delete_size.x);
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(delete_text.c_str()))
|
||||
const std::string msg = fmt::format(_cF("confirmation message", "Permanently delete {}?"), environment_to_be_deleted->name);
|
||||
switch (wivrn::ui::confirm_modal("confirm delete model", _C("confirmation messagebox title", "Delete environment"), msg, _("Delete"), _("Cancel"), true))
|
||||
{
|
||||
delete_environment(*environment_to_be_deleted);
|
||||
environment_to_be_deleted = nullptr;
|
||||
ImGui::CloseCurrentPopup();
|
||||
case 1:
|
||||
delete_environment(*environment_to_be_deleted);
|
||||
environment_to_be_deleted = nullptr;
|
||||
break;
|
||||
case -1:
|
||||
environment_to_be_deleted = nullptr;
|
||||
break;
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3);
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(cancel_text.c_str()))
|
||||
{
|
||||
environment_to_be_deleted = nullptr;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
ImGui::PopStyleVar(3); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_WindowRounding, ImGuiStyleVar_WindowBorderSize
|
||||
}
|
||||
|
||||
void scenes::lobby::popup_load_environment(XrTime predicted_display_time)
|
||||
@@ -694,12 +530,10 @@ void scenes::lobby::popup_load_environment(XrTime predicted_display_time)
|
||||
ImGui::OpenPopup("loading environment model");
|
||||
}
|
||||
|
||||
const auto & popup_layer = imgui_ctx->layers()[1];
|
||||
const glm::vec2 popup_layer_center = popup_layer.vp_origin + popup_layer.vp_size / 2;
|
||||
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, constants::style::window_padding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::window_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, constants::style::window_border_size);
|
||||
ImGui::SetNextWindowPos(imgui_ctx->layers()[1].vp_center(), ImGuiCond_Always, {0.5f, 0.5f});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, wivrn::ui::metrics::window_padding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, wivrn::ui::metrics::window_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, wivrn::ui::metrics::window_border_size);
|
||||
if (ImGui::BeginPopupModal("loading environment model", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
{
|
||||
if (future_environment.valid())
|
||||
@@ -810,40 +644,56 @@ void scenes::lobby::gui_customize(XrTime predicted_display_time)
|
||||
{
|
||||
auto & config = application::get_config();
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {20, 20});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
|
||||
namespace ui = wivrn::ui;
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {0, 0});
|
||||
ImGui::BeginChild("environment list", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, ImGui::GetFontSize() + 80));
|
||||
ui::page_header(_cS("page header title", "Environment"), _cS("page header subtitle", "Choose the environment your panels float in."));
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ui::metrics::card_item_spacing);
|
||||
|
||||
ui::begin_list_card("##environments");
|
||||
environment_list(local_environments, false);
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleVar();
|
||||
ui::end_card();
|
||||
|
||||
if (ImGui::Button(_S("Download more environments")))
|
||||
// Get more environments
|
||||
bool open_download_popup = false;
|
||||
ui::begin_list_card("##get_more");
|
||||
{
|
||||
download_environment_list();
|
||||
ImGui::OpenPopup("download environment model");
|
||||
const float bh = ImGui::GetFrameHeight() * ui::metrics::control_height;
|
||||
const std::string browse = ui::icon_label(ICON_FA_UP_RIGHT_FROM_SQUARE, _C("button label to browse environments to download", "Browse"));
|
||||
const float bw1 = ui::button_width(browse);
|
||||
|
||||
const std::string open = ui::icon_label(ICON_FA_FOLDER_OPEN, _C("button label to open an environment from a local gltf file", "Open"));
|
||||
const float bw2 = ui::button_width(open);
|
||||
|
||||
const float bw = ImMax(bw1, bw2);
|
||||
|
||||
const auto row1 = ui::begin_list_row("##getmore", ICON_FA_IMAGES, 0, _S("Get more environments"), _S("Download community-made spaces."), false, bw1 + ui::metrics::list_row_pad, 0, false, false);
|
||||
ImGui::SetCursorScreenPos(row1.trailing(row1.max.x, {bw, bh}));
|
||||
if (ui::button(browse + "##browse", ui::button_style::secondary, {bw, 0}))
|
||||
{
|
||||
download_environment_list();
|
||||
open_download_popup = true;
|
||||
}
|
||||
ui::end_list_row();
|
||||
|
||||
const auto row2 = ui::begin_list_row("##localgltf", ICON_FA_CUBE, 0, _S("Open local glTF model"), _S("Open a local glTF file saved on your headset."), false, bw2 + ui::metrics::list_row_pad, 0, false, false);
|
||||
ImGui::SetCursorScreenPos(row2.trailing(row2.max.x, {bw, bh}));
|
||||
if (ui::button(open + "##open", ui::button_style::secondary, {bw, 0}))
|
||||
lobby_file_picker_future = lobby_file_picker.open();
|
||||
ui::end_list_row();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ui::end_card();
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(_S("Open local glTF model")))
|
||||
lobby_file_picker_future = lobby_file_picker.open();
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
// deferred past end_card so OpenPopup hashes at the same id-stack level as BeginPopupModal
|
||||
if (open_download_popup)
|
||||
ImGui::OpenPopup("download environment model");
|
||||
|
||||
const auto & popup_layer = imgui_ctx->layers()[1];
|
||||
const glm::vec2 popup_layer_center = popup_layer.vp_origin + popup_layer.vp_size / 2;
|
||||
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
ImGui::SetNextWindowSize({1200, 900});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::window_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, constants::style::window_border_size);
|
||||
if (ImGui::BeginPopupModal("download environment model", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
if (ui::begin_modal("download environment model", _cS("popup window title", "Browse environments"), 1200))
|
||||
{
|
||||
auto close = _("Close");
|
||||
auto close_size = ImGui::CalcTextSize(close.c_str());
|
||||
const float side = ImGui::GetFrameHeight() * ui::metrics::control_height;
|
||||
const float list_h = 760;
|
||||
|
||||
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, close_size.y + 80) /*, ImGuiChildFlags_AlwaysUseWindowPadding*/);
|
||||
ImGui::BeginChild("Main", {0, list_h});
|
||||
|
||||
auto index_transfer = parse_environment_list();
|
||||
switch (index_transfer ? index_transfer->get_state() : libcurl::state::reset)
|
||||
@@ -855,7 +705,7 @@ void scenes::lobby::gui_customize(XrTime predicted_display_time)
|
||||
ImSpinner::SpinnerAng("index download spinner",
|
||||
200, // Radius
|
||||
40, // Thickness
|
||||
ImColor{1.f, 1.f, 1.f, 1.f}, // Colour
|
||||
ImColor{ui::current().text}, // Colour
|
||||
ImColor{1.f, 1.f, 1.f, 0.f}, // Background
|
||||
6, // Velocity
|
||||
0.75f * 2 * M_PI // Angle
|
||||
@@ -878,79 +728,30 @@ void scenes::lobby::gui_customize(XrTime predicted_display_time)
|
||||
CenterTextHV(downloadable_environment_list_status);
|
||||
|
||||
ImGui::Dummy({0, constants::gui::font_size_large});
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, 0);
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x - ImGui::CalcTextSize(ICON_FA_ROTATE).x) / 2 - ImGui::GetStyle().FramePadding.x);
|
||||
if (ImGui::Button(ICON_FA_ROTATE))
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x - side) / 2);
|
||||
if (ui::icon_button(ICON_FA_ROTATE, {side, side}, false, _C("button label to re-deownload the environment list", "Refresh")))
|
||||
download_environment_list();
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(); // ImGuiCol_Button
|
||||
ImGui::PopFont();
|
||||
}
|
||||
}
|
||||
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() - close_size - ImVec2{50, 50});
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(_S("Close")))
|
||||
ImGui::Dummy({0, ImGui::GetStyle().ItemSpacing.y});
|
||||
const std::string close = _S("Close");
|
||||
const float cw = ui::button_width(close);
|
||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - cw);
|
||||
if (ui::button(close, ui::button_style::secondary, {cw, 0}))
|
||||
ImGui::CloseCurrentPopup();
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3); // ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive
|
||||
|
||||
popup_load_environment(predicted_display_time);
|
||||
|
||||
ImGui::EndPopup();
|
||||
ui::end_modal();
|
||||
}
|
||||
else
|
||||
{
|
||||
popup_load_environment(predicted_display_time);
|
||||
}
|
||||
ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowRounding, ImGuiStyleVar_WindowBorderSize
|
||||
|
||||
// if (ImGui::RadioButton(_S("Custom environment"), not config.passthrough_enabled and config.environment_model_uri != ""))
|
||||
// lobby_file_picker_future = lobby_file_picker.open();
|
||||
// imgui_ctx->vibrate_on_hover();
|
||||
//
|
||||
// try
|
||||
// {
|
||||
// lobby_file_picker.display();
|
||||
//
|
||||
// if (lobby_file_picker_future.valid() and lobby_file_picker_future.wait_for(0s) == std::future_status::ready)
|
||||
// {
|
||||
// auto environment = lobby_file_picker_future.get();
|
||||
//
|
||||
// // TODO load asynchronously
|
||||
// // TODO allow caching
|
||||
// spdlog::info("Loading new environment from {}", environment.path.native());
|
||||
// auto t0 = std::chrono::steady_clock::now();
|
||||
// auto new_lobby = load_gltf(environment.file);
|
||||
// auto dt = std::chrono::steady_clock::now() - t0;
|
||||
// spdlog::info("Loaded successfully in {}", dt);
|
||||
//
|
||||
// remove(lobby_entity);
|
||||
// lobby_entity = add_gltf(new_lobby, layer_lobby).first;
|
||||
//
|
||||
// config.passthrough_enabled = false;
|
||||
// setup_passthrough();
|
||||
// }
|
||||
// }
|
||||
// catch (std::exception & e)
|
||||
// {
|
||||
// spdlog::warn("Cannot load environment: {}", e.what());
|
||||
// }
|
||||
|
||||
// auto & lobby_node = world.get<components::node>(lobby_entity);
|
||||
// float scale = lobby_node.scale.x;
|
||||
// if (ImGui::SliderFloat("Environment scale", &scale, 0.1, 10, "%.3f", ImGuiSliderFlags_Logarithmic))
|
||||
// lobby_node.scale = glm::vec3{scale, scale, scale};
|
||||
// imgui_ctx->vibrate_on_hover();
|
||||
//
|
||||
// ImGui::SliderFloat("Environment elevation", &lobby_node.position.y, -3, 3, "%.3f");
|
||||
// imgui_ctx->vibrate_on_hover();
|
||||
|
||||
ImGui::PopStyleVar(2); // ImGuiStyleVar_ItemSpacing, ImGuiStyleVar_FramePadding
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_ItemSpacing
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// lobby-side settings pages, shared with the in-stream window (see gui_settings.cpp)
|
||||
|
||||
#include "lobby.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "gui_settings.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
wivrn::gui::settings_context lobby_settings_context(xr::instance & instance, xr::session & session, xr::system & system, imgui_context & imgui_ctx, const XrViewConfigurationView & stream_view, std::optional<bool> server_hid_forwarding)
|
||||
{
|
||||
return {
|
||||
.config = application::get_config(),
|
||||
.default_config = application::get_default_config(),
|
||||
.instance = instance,
|
||||
.session = session,
|
||||
.system = system,
|
||||
.imgui_ctx = imgui_ctx,
|
||||
.recommended_width = stream_view.recommendedImageRectWidth,
|
||||
.recommended_height = stream_view.recommendedImageRectHeight,
|
||||
.in_game = false,
|
||||
.server_hid_forwarding = server_hid_forwarding,
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void scenes::lobby::gui_video()
|
||||
{
|
||||
wivrn::gui::settings_video(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_streaming()
|
||||
{
|
||||
wivrn::gui::settings_streaming(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_post_processing()
|
||||
{
|
||||
wivrn::gui::settings_post_processing(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_audio()
|
||||
{
|
||||
wivrn::gui::settings_audio(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_devices()
|
||||
{
|
||||
wivrn::gui::settings_devices(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_tracking()
|
||||
{
|
||||
wivrn::gui::settings_tracking(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_system()
|
||||
{
|
||||
wivrn::gui::settings_system(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_theme()
|
||||
{
|
||||
wivrn::gui::settings_theme(lobby_settings_context(instance, session, system, *imgui_ctx, stream_view, server_hid_forwarding));
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "lobby.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "configuration.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include <string>
|
||||
|
||||
namespace ui = wivrn::ui;
|
||||
|
||||
void scenes::lobby::apply_theme_settings()
|
||||
{
|
||||
auto & config = application::get_config();
|
||||
|
||||
// preset by name, surfaces only, accent applied separately below
|
||||
for (const auto & p: ui::presets())
|
||||
{
|
||||
if (p.name == config.theme_preset)
|
||||
{
|
||||
ui::set_theme(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto & swatch: ui::accent_swatches())
|
||||
{
|
||||
if (swatch.name == config.theme_accent)
|
||||
{
|
||||
ui::set_accent(swatch);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ui::theme & theme = ui::current();
|
||||
theme.rounding = config.theme_rounding;
|
||||
theme.card_rounding = config.theme_card_rounding;
|
||||
theme.font_scale = config.theme_font_scale;
|
||||
ui::background_alpha() = config.theme_background_alpha;
|
||||
}
|
||||
@@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "lobby_keyboard.h"
|
||||
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
@@ -29,10 +29,10 @@
|
||||
#include <uni_algo/ranges_grapheme.h>
|
||||
#include <utility>
|
||||
|
||||
#include "IconsFontAwesome6.h"
|
||||
#include "IconsFontAwesome7.h"
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "lobby_keyboard.h"
|
||||
#include "render/ui_theme.h"
|
||||
|
||||
static const ImGuiKey key_layout = (ImGuiKey)(ImGuiKey_NamedKey_END + 1);
|
||||
static const ImGuiKey key_symbols_letter = (ImGuiKey)(ImGuiKey_NamedKey_END + 2);
|
||||
@@ -391,7 +391,7 @@ virtual_keyboard::key_status virtual_keyboard::draw_single_key(const key & k, in
|
||||
|
||||
const ImU32 col = ImGui::GetColorU32(active ? ImGuiCol_ButtonActive : status.hovered ? ImGuiCol_ButtonHovered
|
||||
: ImGuiCol_Button);
|
||||
ImGui::RenderNavHighlight(bb, id);
|
||||
ImGui::RenderNavCursor(bb, id);
|
||||
ImGui::RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding);
|
||||
|
||||
ImGui::RenderTextClippedEx(
|
||||
@@ -465,6 +465,7 @@ void virtual_keyboard::press_single_key(const key & k)
|
||||
void virtual_keyboard::display(imgui_context & ctx)
|
||||
{
|
||||
ImGuiStyle & style = ImGui::GetStyle();
|
||||
const wivrn::ui::theme & th = wivrn::ui::current();
|
||||
|
||||
ImGuiInputTextState * input_state = ImGui::GetInputTextState(ImGui::GetCurrentContext()->ActiveId);
|
||||
bool want_digits = input_state and (input_state->Flags & ImGuiInputTextFlags_CharsDecimal) != 0;
|
||||
@@ -473,15 +474,20 @@ void virtual_keyboard::display(imgui_context & ctx)
|
||||
: *layouts[current_layout].second;
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 16);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, th.card_rounding);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {8, 8});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 8);
|
||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, IM_COL32(8, 8, 8, 224));
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, th.rounding);
|
||||
if (want_digits)
|
||||
ImGui::SetNextWindowSize({350, 400});
|
||||
else
|
||||
ImGui::SetNextWindowSize({1400, 400});
|
||||
|
||||
// window background follows the theme, with a user-controlled opacity
|
||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4{th.background.x, th.background.y, th.background.z, wivrn::ui::background_alpha()});
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, th.control);
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, th.control_hovered);
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, th.control_active);
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, th.text);
|
||||
ImGui::Begin("VirtualKeyboard", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoFocusOnClick);
|
||||
|
||||
ImVec2 size = ImGui::GetWindowSize();
|
||||
@@ -554,8 +560,8 @@ void virtual_keyboard::display(imgui_context & ctx)
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
ImGui::PopStyleColor(); // ImGuiCol_WindowBg
|
||||
ImGui::PopStyleVar(4); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_WindowRounding, ImGuiStyleVar_ItemSpacing, ImGuiStyleVar_FrameRounding
|
||||
ImGui::PopStyleColor(5); // ImGuiCol_WindowBg, ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive, ImGuiCol_Text
|
||||
ImGui::PopStyleVar(4); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_WindowRounding, ImGuiStyleVar_ItemSpacing, ImGuiStyleVar_FrameRounding
|
||||
}
|
||||
|
||||
const std::string_view virtual_keyboard::get_layout() const
|
||||
|
||||
+28
-14
@@ -515,13 +515,6 @@ void scenes::stream::on_focused()
|
||||
.vp_origin = {0, 0},
|
||||
.vp_size = {1800, 1000},
|
||||
},
|
||||
{
|
||||
// Popup window
|
||||
.space = xr::spaces::world,
|
||||
.size = {1.2, 0.6666},
|
||||
.vp_origin = {1800, 0},
|
||||
.vp_size = {1800, 1000},
|
||||
},
|
||||
{
|
||||
.space = xr::spaces::world,
|
||||
.size = {1.2, 0.1333},
|
||||
@@ -529,6 +522,13 @@ void scenes::stream::on_focused()
|
||||
.vp_size = {1800, 200},
|
||||
.tooltip_viewport = true,
|
||||
},
|
||||
{
|
||||
// popup window for combos and modals, tracks the main panel each frame at the same pixel density
|
||||
.space = xr::spaces::world,
|
||||
.size = {1.2, 0.6666},
|
||||
.vp_origin = {1800, 0},
|
||||
.vp_size = {1800, 1000},
|
||||
},
|
||||
};
|
||||
|
||||
imgui_ctx.emplace(physical_device,
|
||||
@@ -540,11 +540,26 @@ void scenes::stream::on_focused()
|
||||
std::move(vps),
|
||||
image_cache);
|
||||
|
||||
if (application::get_config().enable_stream_gui)
|
||||
// match the lobby's seasonal wordmark logo
|
||||
{
|
||||
plots_toggle_1 = get_action("plots_toggle_1").first;
|
||||
plots_toggle_2 = get_action("plots_toggle_2").first;
|
||||
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||
auto tm = std::localtime(&t);
|
||||
switch (tm->tm_mon)
|
||||
{
|
||||
case 5:
|
||||
wivrn_logo = imgui_ctx->load_texture("assets://wivrn-pride.ktx2");
|
||||
break;
|
||||
case 11:
|
||||
wivrn_logo = imgui_ctx->load_texture("assets://wivrn-christmas.ktx2");
|
||||
break;
|
||||
default:
|
||||
wivrn_logo = imgui_ctx->load_texture("assets://wivrn.ktx2");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
plots_toggle_1 = get_action("plots_toggle_1").first;
|
||||
plots_toggle_2 = get_action("plots_toggle_2").first;
|
||||
recenter_left = get_action("recenter_left").first;
|
||||
recenter_right = get_action("recenter_right").first;
|
||||
gui_distance_left = get_action("gui_distance_left").first;
|
||||
@@ -787,7 +802,6 @@ bool scenes::stream::is_interactable(stream_tab tab)
|
||||
{
|
||||
case stream_tab::stats:
|
||||
case stream_tab::settings:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
case stream_tab::applications:
|
||||
case stream_tab::application_launcher:
|
||||
@@ -1010,7 +1024,6 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
switch (gui_status)
|
||||
{
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
case stream_tab::compact:
|
||||
case stream_tab::overlay_only:
|
||||
@@ -1156,7 +1169,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
read_actions();
|
||||
|
||||
if (plots_toggle_1 and plots_toggle_2)
|
||||
if (application::get_config().enable_stream_gui)
|
||||
{
|
||||
XrActionStateGetInfo get_info{
|
||||
.type = XR_TYPE_ACTION_STATE_GET_INFO,
|
||||
@@ -1171,7 +1184,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
if (state_1.currentState and state_2.currentState and (state_1.changedSinceLastSync or state_2.changedSinceLastSync))
|
||||
{
|
||||
// Arbitraty transitions can happen from network commands
|
||||
// Arbitrary transitions can happen from network commands
|
||||
// Ensure we can't have a set of 2 non interactable states
|
||||
if (is_gui_interactable())
|
||||
next_gui_status = stream_tab::hidden;
|
||||
@@ -1367,6 +1380,7 @@ void scenes::stream::on_xr_event(const xr::event & event)
|
||||
case XR_TYPE_EVENT_DATA_USER_PRESENCE_CHANGED_EXT:
|
||||
network_session->send_control(from_headset::user_presence_changed{
|
||||
.present = (bool)event.user_presence_changed.isUserPresent,
|
||||
.change_time = instance.now(),
|
||||
});
|
||||
break;
|
||||
case XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED:
|
||||
|
||||
@@ -132,6 +132,7 @@ private:
|
||||
uint32_t height;
|
||||
|
||||
std::optional<imgui_context> imgui_ctx;
|
||||
ImTextureID wivrn_logo = 0; // wordmark logo shown in the top bar, like the lobby
|
||||
struct gui_toast
|
||||
{
|
||||
std::string content;
|
||||
@@ -141,6 +142,20 @@ private:
|
||||
static bool is_interactable(stream_tab);
|
||||
bool is_gui_interactable() const;
|
||||
|
||||
// settings sub-page, client-only: the wire stream_tab stays settings
|
||||
enum class settings_page
|
||||
{
|
||||
video,
|
||||
audio,
|
||||
streaming,
|
||||
post_processing,
|
||||
devices,
|
||||
tracking,
|
||||
theme,
|
||||
system,
|
||||
};
|
||||
settings_page current_settings_page = settings_page::video;
|
||||
|
||||
// Tab currently being displayed
|
||||
stream_tab gui_status = stream_tab::hidden;
|
||||
// Tab that we will switch to if button is pressed
|
||||
|
||||
+297
-201
@@ -17,20 +17,21 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <glm/ext/quaternion_common.hpp>
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "stream.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "configuration.h"
|
||||
#include "constants.h"
|
||||
#include "gui_common.h"
|
||||
#include "gui_settings.h"
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "implot.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include "render/ui_widgets.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/ranges.h"
|
||||
#include <IconsFontAwesome6.h>
|
||||
#include <IconsFontAwesome7.h>
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <glm/ext.hpp>
|
||||
@@ -167,6 +168,7 @@ void scenes::stream::accumulate_metrics(XrTime predicted_display_time, const std
|
||||
void scenes::stream::gui_performance_metrics()
|
||||
{
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
const wivrn::ui::theme & t = wivrn::ui::current();
|
||||
|
||||
ImVec2 window_size = ImGui::GetWindowSize() - ImVec2(2, 2) * style.WindowPadding;
|
||||
|
||||
@@ -191,7 +193,10 @@ void scenes::stream::gui_performance_metrics()
|
||||
window_size.x / n_cols - style.ItemSpacing.x * (n_cols - 1) / n_cols,
|
||||
(window_size.y - 2 * ImGui::GetCurrentContext()->FontSize - 2 * style.ItemSpacing.y) / n_rows - style.ItemSpacing.y * (n_rows - 1) / n_rows);
|
||||
|
||||
ImPlot::PushStyleColor(ImPlotCol_PlotBg, IM_COL32(32, 32, 32, 64));
|
||||
ImPlot::PushStyleColor(ImPlotCol_PlotBg, ImVec4{t.background.x, t.background.y, t.background.z, 0.8f});
|
||||
ImPlot::PushStyleColor(ImPlotCol_PlotBorder, t.border);
|
||||
ImPlot::PushStyleColor(ImPlotCol_LegendBg, ImVec4{t.card.x, t.card.y, t.card.z, 0.9f});
|
||||
ImPlot::PushStyleColor(ImPlotCol_InlayText, t.text);
|
||||
ImPlot::PushStyleColor(ImPlotCol_FrameBg, IM_COL32(0, 0, 0, 0));
|
||||
ImPlot::PushStyleColor(ImPlotCol_AxisBg, IM_COL32(0, 0, 0, 0));
|
||||
ImPlot::PushStyleColor(ImPlotCol_AxisBgActive, IM_COL32(0, 0, 0, 0));
|
||||
@@ -220,8 +225,11 @@ void scenes::stream::gui_performance_metrics()
|
||||
std::string title_with_units = std::string(title) + " [" + prefix + unit + "]";
|
||||
ImPlot::SetupAxes(nullptr, title_with_units.c_str(), ImPlotAxisFlags_NoDecorations, 0);
|
||||
ImPlot::SetupAxesLimits(0, global_metrics.size() - 1, min_v * multiplier, axis_scale[n] * multiplier, ImGuiCond_Always);
|
||||
ImPlot::SetNextLineStyle(color);
|
||||
ImPlot::SetNextFillStyle(color, 0.25);
|
||||
ImPlotSpec spec;
|
||||
spec.LineColor = color;
|
||||
spec.FillColor = color;
|
||||
spec.FillAlpha = 0.25;
|
||||
spec.Flags = ImPlotLineFlags_Shaded;
|
||||
|
||||
for (const auto & [subtitle, data]: subplots)
|
||||
{
|
||||
@@ -230,12 +238,12 @@ void scenes::stream::gui_performance_metrics()
|
||||
.stride = sizeof(global_metric),
|
||||
.multiplier = multiplier,
|
||||
};
|
||||
ImPlot::PlotLineG(subtitle.c_str(), getter, &gdata, global_metrics.size(), ImPlotLineFlags_Shaded);
|
||||
ImPlot::PlotLineG(subtitle.c_str(), getter, &gdata, global_metrics.size(), spec);
|
||||
|
||||
double x[] = {double(metrics_offset), double(metrics_offset)};
|
||||
double y[] = {0, axis_scale[n] * multiplier};
|
||||
ImPlot::SetNextLineStyle(ImVec4(1, 1, 1, 1));
|
||||
ImPlot::PlotLine("", x, y, 2);
|
||||
spec.LineColor = ImVec4(1, 1, 1, 1);
|
||||
ImPlot::PlotLine("", x, y, 2, spec);
|
||||
}
|
||||
ImPlot::EndPlot();
|
||||
}
|
||||
@@ -329,8 +337,7 @@ void scenes::stream::gui_performance_metrics()
|
||||
|
||||
double x[] = {double(metrics_offset), double(metrics_offset)};
|
||||
double y[] = {0, 1e9};
|
||||
ImPlot::SetNextLineStyle(ImVec4(1, 1, 1, 1));
|
||||
ImPlot::PlotLine("", x, y, 2);
|
||||
ImPlot::PlotLine("", x, y, 2, {ImPlotProp_LineColor, ImVec4(1, 1, 1, 1)});
|
||||
|
||||
ImPlot::EndPlot();
|
||||
}
|
||||
@@ -339,7 +346,7 @@ void scenes::stream::gui_performance_metrics()
|
||||
ImGui::SameLine();
|
||||
}
|
||||
|
||||
ImPlot::PopStyleColor(5);
|
||||
ImPlot::PopStyleColor(8);
|
||||
{
|
||||
ImGui::TextUnformatted(
|
||||
fmt::format(
|
||||
@@ -392,90 +399,62 @@ static void send_settings_changed_packet(xr::session & session, wivrn_session *
|
||||
});
|
||||
}
|
||||
|
||||
void scenes::stream::gui_settings(float predicted_display_period)
|
||||
void scenes::stream::gui_settings(float)
|
||||
{
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
auto & config = application::get_config();
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(20, 20));
|
||||
|
||||
if (gui::refresh_rate(instance, session, *imgui_ctx, config))
|
||||
send_settings_changed_packet(session, network_session.get(), config);
|
||||
// same pages as the lobby, with in_game enabling the in-stream controls
|
||||
wivrn::gui::settings_context ctx{
|
||||
.config = application::get_config(),
|
||||
.default_config = application::get_default_config(),
|
||||
.instance = instance,
|
||||
.session = session,
|
||||
.system = system,
|
||||
.imgui_ctx = *imgui_ctx,
|
||||
.recommended_width = width,
|
||||
.recommended_height = height,
|
||||
.in_game = true,
|
||||
.server_hid_forwarding = hid_forwarding_enabled(),
|
||||
.on_streaming_changed = [this] { send_settings_changed_packet(session, network_session.get(), application::get_config()); },
|
||||
.enter_foveation_adjust = [this] { next_gui_status = stream_tab::foveation_settings; },
|
||||
.on_foveation_override_changed = [this] {
|
||||
const auto & config = application::get_config();
|
||||
override_foveation_enable = config.override_foveation_enable;
|
||||
override_foveation_pitch = config.override_foveation_pitch;
|
||||
override_foveation_distance = config.override_foveation_distance;
|
||||
network_session->send_control(from_headset::override_foveation_center{
|
||||
.enabled = override_foveation_enable,
|
||||
.pitch = override_foveation_pitch,
|
||||
.distance = override_foveation_distance,
|
||||
}); },
|
||||
};
|
||||
|
||||
switch (current_settings_page)
|
||||
{
|
||||
const auto text = _("Bitrate:");
|
||||
const auto size = ImGui::CalcTextSize(text.c_str());
|
||||
ImGui::Text("%s", text.c_str());
|
||||
|
||||
ImGui::SameLine(0.f, 10.f);
|
||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (size.y / 4.f) - style.FramePadding.y * 3.f);
|
||||
if (ImGui::Button(fmt::format("{}Mbit/s", config.bitrate_bps / 1'000'000).c_str()))
|
||||
next_gui_status = stream_tab::bitrate_settings;
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Click to adjust bitrate"));
|
||||
case settings_page::video:
|
||||
wivrn::gui::settings_video(ctx);
|
||||
break;
|
||||
case settings_page::audio:
|
||||
wivrn::gui::settings_audio(ctx);
|
||||
break;
|
||||
case settings_page::streaming:
|
||||
wivrn::gui::settings_streaming(ctx);
|
||||
break;
|
||||
case settings_page::post_processing:
|
||||
wivrn::gui::settings_post_processing(ctx);
|
||||
break;
|
||||
case settings_page::devices:
|
||||
wivrn::gui::settings_devices(ctx);
|
||||
break;
|
||||
case settings_page::tracking:
|
||||
if (wivrn::gui::settings_tracking(ctx))
|
||||
send_settings_changed_packet(session, network_session.get(), ctx.config);
|
||||
break;
|
||||
case settings_page::system:
|
||||
wivrn::gui::settings_system(ctx);
|
||||
break;
|
||||
case settings_page::theme:
|
||||
wivrn::gui::settings_theme(ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
if (config.check_feature(feature::body_tracking))
|
||||
{
|
||||
if (gui::body_tracking_parts(system, *imgui_ctx, config))
|
||||
send_settings_changed_packet(session, network_session.get(), config);
|
||||
}
|
||||
|
||||
gui::post_processing(*imgui_ctx, config);
|
||||
|
||||
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))
|
||||
{
|
||||
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")))
|
||||
next_gui_status = stream_tab::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();
|
||||
}
|
||||
|
||||
void scenes::stream::gui_bitrate_settings(float predicted_display_period)
|
||||
@@ -508,7 +487,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
ImGui::Text("%s", _S("Use the thumbsticks to move the foveation center"));
|
||||
ImGui::Text("%s", _S("Press A to save or B to cancel"));
|
||||
ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str());
|
||||
ImGui::Text("%s", fmt::format(_F("Height {:.1f} °"), -override_foveation_pitch * 180 / M_PI).c_str());
|
||||
ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str());
|
||||
ImGui::PopFont();
|
||||
|
||||
@@ -562,68 +541,77 @@ void scenes::stream::gui_applications()
|
||||
network_session->send_control(from_headset::get_running_applications{});
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
CenterTextH(_("Running XR applications:"));
|
||||
ImGui::PopFont();
|
||||
wivrn::ui::page_header(_cS("page header title", "Applications"), _cS("page header subtitle", "Running XR applications on the server."));
|
||||
|
||||
auto apps = running_applications.lock();
|
||||
ImVec2 button_size(ImGui::GetWindowSize().x - ImGui::GetCursorPosX() - 20, 0);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(ImGui::GetStyle().ItemSpacing.x, 20));
|
||||
ImGui::Spacing();
|
||||
std::ranges::sort(apps->applications, [](auto & l, auto & r) {
|
||||
if (l.overlay == r.overlay)
|
||||
return false;
|
||||
return r.overlay;
|
||||
});
|
||||
bool overlay = false;
|
||||
for (const auto & app: apps->applications)
|
||||
|
||||
const float gap = ImGui::GetStyle().ItemSpacing.x;
|
||||
const float ctrl_h = ImGui::GetFrameHeight() * wivrn::ui::metrics::control_height;
|
||||
const std::string stop_label = wivrn::ui::icon_label(ICON_FA_XMARK, _C("button label to ask an application to quit", "Stop"));
|
||||
const float stop_w = wivrn::ui::button_width(stop_label);
|
||||
const std::string active_label = wivrn::ui::icon_label(ICON_FA_CIRCLE_CHECK, _C("chip displayed next to a running application while streaming", "Active"));
|
||||
const float active_w = wivrn::ui::chip_width(active_label, false, stop_w);
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, wivrn::ui::metrics::card_item_spacing);
|
||||
wivrn::ui::begin_list_card("##running");
|
||||
{
|
||||
if (app.overlay and not overlay)
|
||||
if (apps->applications.empty())
|
||||
{
|
||||
ImGui::Separator();
|
||||
CenterTextH(_S("Overlays"));
|
||||
overlay = true;
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, wivrn::ui::current().text_muted);
|
||||
ImGui::TextUnformatted(_S("No XR application is currently running."));
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
int colors = 1;
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, IM_COL32_BLACK_TRANS);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 20));
|
||||
if (app.active or app.overlay)
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, IM_COL32_BLACK_TRANS);
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, IM_COL32_BLACK_TRANS);
|
||||
colors += 2;
|
||||
}
|
||||
ImGui::SetNextItemAllowOverlap();
|
||||
const bool clicked = RadioButtonWithoutCheckBox(
|
||||
std::format("{}{}##{}", app.active ? ICON_FA_CHEVRON_RIGHT " " : " ", app.name, app.id).c_str(),
|
||||
app.active,
|
||||
button_size);
|
||||
if (clicked and not(app.active or app.overlay))
|
||||
{
|
||||
network_session->send_control(from_headset::set_active_application{.id = app.id});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
ImGui::PopStyleColor(colors);
|
||||
ImGui::PopStyleVar(2);
|
||||
|
||||
ImGui::SameLine();
|
||||
auto right = ImGui::GetWindowSize().x;
|
||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 10);
|
||||
ImGui::SetCursorPosX(right - ImGui::CalcTextSize(ICON_FA_XMARK).x - ImGui::GetStyle().FramePadding.x - 40);
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(std::format(ICON_FA_XMARK "##{}", app.id).c_str()))
|
||||
network_session->send_control(from_headset::stop_application{.id = app.id});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3);
|
||||
bool overlay = false;
|
||||
bool first = true;
|
||||
for (const auto & app: apps->applications)
|
||||
{
|
||||
if (app.overlay and not overlay)
|
||||
{
|
||||
overlay = true;
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, wivrn::ui::current().text_muted);
|
||||
ImGui::TextUnformatted(_S("Overlays"));
|
||||
ImGui::PopStyleColor();
|
||||
first = true;
|
||||
}
|
||||
ImGui::PushID(static_cast<int>(app.id));
|
||||
if (not first)
|
||||
wivrn::ui::row_separator();
|
||||
first = false;
|
||||
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_S("Request to quit, may be ignored by the application"));
|
||||
// overlays and the active app aren't selectable, only their stop button acts
|
||||
const bool interactive = not(app.active or app.overlay);
|
||||
const float trailing = stop_w + (app.active ? gap + active_w : 0) + wivrn::ui::metrics::list_row_pad;
|
||||
const auto row = wivrn::ui::begin_list_row("##row", ICON_FA_CUBE, 0, app.name, {}, app.active, trailing, 0, false, interactive);
|
||||
float x = row.max.x;
|
||||
|
||||
ImGui::SetCursorScreenPos(row.trailing(x, {stop_w, ctrl_h}));
|
||||
if (wivrn::ui::button(stop_label, wivrn::ui::button_style::danger, {stop_w, 0}))
|
||||
network_session->send_control(from_headset::stop_application{.id = app.id});
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_S("Request to quit, may be ignored by the application"));
|
||||
x -= stop_w + gap;
|
||||
|
||||
if (app.active)
|
||||
{
|
||||
ImGui::SetCursorScreenPos(row.trailing(x, {active_w, ctrl_h}));
|
||||
wivrn::ui::chip(active_label, wivrn::ui::chip_style::success, false, ctrl_h);
|
||||
}
|
||||
|
||||
if (row.clicked and interactive)
|
||||
network_session->send_control(from_headset::set_active_application{.id = app.id});
|
||||
|
||||
wivrn::ui::end_list_row();
|
||||
ImGui::PopID();
|
||||
}
|
||||
}
|
||||
ImGui::PopStyleVar(3);
|
||||
wivrn::ui::end_card();
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
||||
void scenes::stream::gui_toasts()
|
||||
@@ -686,7 +674,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
switch (gui_status)
|
||||
{
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
case stream_tab::overlay_only:
|
||||
case stream_tab::compact:
|
||||
@@ -742,7 +729,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
glm::mat3 M = glm::mat3_cast(head_position->second);
|
||||
switch (gui_status)
|
||||
{
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
imgui_ctx->layers()[0].orientation = head_position->second;
|
||||
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance};
|
||||
@@ -768,18 +754,33 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
imgui_ctx->layers()[0].position = world_gui_position;
|
||||
break;
|
||||
}
|
||||
|
||||
// Position popup layer
|
||||
imgui_ctx->layers()[1].orientation = imgui_ctx->layers()[0].orientation;
|
||||
imgui_ctx->layers()[1].position = imgui_ctx->layers()[0].position + imgui_ctx->layers()[0].orientation * constants::lobby::popup_position;
|
||||
}
|
||||
|
||||
const float tab_width = 300;
|
||||
// popup layer floats in front of the main panel so combos and modals pop as their own quad
|
||||
imgui_ctx->place_layer_relative(2, 0, constants::gui::popup_position);
|
||||
|
||||
const float tab_width = wivrn::ui::metrics::sidebar_width;
|
||||
const float top_bar_h = wivrn::ui::metrics::top_bar_height;
|
||||
const float content_margin = wivrn::ui::metrics::content_margin;
|
||||
const ImVec2 margin_around_window{50, 50};
|
||||
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
ImGuiStyle & style = ImGui::GetStyle();
|
||||
imgui_ctx->new_frame(predicted_display_time);
|
||||
|
||||
// theme the shared cards like the lobby, widget hooks are global so re-point at this scene
|
||||
style.FontScaleMain = wivrn::ui::current().font_scale * wivrn::ui::metrics::font_base;
|
||||
style.WindowRounding = wivrn::ui::current().card_rounding;
|
||||
style.ChildRounding = wivrn::ui::current().card_rounding;
|
||||
style.PopupRounding = wivrn::ui::current().card_rounding;
|
||||
style.FrameRounding = wivrn::ui::current().rounding;
|
||||
style.GrabRounding = wivrn::ui::current().rounding;
|
||||
style.TabRounding = wivrn::ui::current().rounding;
|
||||
style.Colors[ImGuiCol_Text] = wivrn::ui::current().text;
|
||||
style.Colors[ImGuiCol_TextDisabled] = wivrn::ui::current().text_muted;
|
||||
wivrn::ui::set_popup_center(imgui_ctx->layers()[2].vp_center(), float(imgui_ctx->layers()[2].vp_size.y));
|
||||
wivrn::ui::set_hover_haptic([this] { imgui_ctx->vibrate_on_hover(); });
|
||||
wivrn::ui::set_tooltip_hook([this](const char * text) { imgui_ctx->tooltip(text); });
|
||||
|
||||
ImVec2 viewport_size(imgui_ctx->layers()[0].vp_size.x, imgui_ctx->layers()[0].vp_size.y);
|
||||
ImVec2 content_size{viewport_size - ImVec2{tab_width, 0} - margin_around_window * 2};
|
||||
ImVec2 content_center = margin_around_window + content_size / 2 + ImVec2{tab_width, 0};
|
||||
@@ -794,7 +795,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
break;
|
||||
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
always_auto_resize = true;
|
||||
@@ -824,6 +824,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 4);
|
||||
}
|
||||
|
||||
// themed translucent background, matching the lobby
|
||||
const wivrn::ui::theme & th = wivrn::ui::current();
|
||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4{th.background.x, th.background.y, th.background.z, wivrn::ui::background_alpha()});
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0);
|
||||
if (always_auto_resize)
|
||||
{
|
||||
@@ -863,21 +867,28 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
break;
|
||||
|
||||
case stream_tab::stats:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
ImGui::SetCursorPos({tab_width + content_margin, top_bar_h});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX() - content_margin, 0));
|
||||
ImGui::SetCursorPosY(20);
|
||||
wivrn::ui::page_header(_S("Statistics"), _S("Live streaming performance."));
|
||||
ImGui::BeginChild("plots", {0, 0});
|
||||
gui_performance_metrics();
|
||||
ImGui::EndChild();
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleVar();
|
||||
break;
|
||||
|
||||
case stream_tab::settings:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
ImGui::SetCursorPos({tab_width + content_margin, top_bar_h});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX() - content_margin, 0));
|
||||
ImGui::SetCursorPosY(20);
|
||||
gui_settings(predicted_display_period * 1.e-9f);
|
||||
ImGui::Dummy(ImVec2(0, 20));
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
break;
|
||||
|
||||
case stream_tab::bitrate_settings:
|
||||
gui_bitrate_settings(predicted_display_period * 1.e-9f);
|
||||
ImGui::PopStyleVar();
|
||||
break;
|
||||
|
||||
case stream_tab::foveation_settings:
|
||||
@@ -885,10 +896,15 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
break;
|
||||
|
||||
case stream_tab::applications:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
ImGui::SetCursorPos({tab_width + content_margin, top_bar_h});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX() - content_margin, 0));
|
||||
ImGui::SetCursorPosY(20);
|
||||
gui_applications();
|
||||
ImGui::Dummy(ImVec2(0, 20));
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleVar();
|
||||
break;
|
||||
|
||||
case stream_tab::application_launcher:
|
||||
@@ -900,18 +916,96 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
|
||||
if (display_tabs)
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(0, 0, 0, 255));
|
||||
ImGui::SetCursorPos(style.WindowPadding);
|
||||
// top bar: logo left, battery/connection status/window controls right
|
||||
const float side = ImGui::GetFrameHeight() * wivrn::ui::metrics::control_height;
|
||||
std::vector<wivrn::ui::top_bar_item> top_items;
|
||||
if (auto bat = wivrn::gui::battery_status_indicator(instance.now()))
|
||||
top_items.push_back({wivrn::ui::chip_width(bat->label, false, side),
|
||||
[bat = *bat, side] { wivrn::ui::chip(bat.label, bat.style, false, side); }});
|
||||
const std::string conn = _C("status in the title bar", "Connected");
|
||||
top_items.push_back({wivrn::ui::chip_width(conn, true, side),
|
||||
[conn, side] { wivrn::ui::chip(conn, wivrn::ui::chip_style::success, true, side); }});
|
||||
const std::string close_label = _S("Close");
|
||||
top_items.push_back({wivrn::ui::button_width(ICON_FA_XMARK, close_label),
|
||||
[this, close_label, side] {
|
||||
if (wivrn::ui::button(ICON_FA_XMARK, close_label, wivrn::ui::button_style::secondary, {0, side}))
|
||||
next_gui_status = stream_tab::hidden;
|
||||
}});
|
||||
// disconnect asks for confirmation, OpenPopup/confirm_modal share the window id stack
|
||||
bool request_disconnect = false;
|
||||
const std::string disconnect_label = _S("Disconnect");
|
||||
top_items.push_back({wivrn::ui::button_width(ICON_FA_DOOR_OPEN, disconnect_label),
|
||||
[&request_disconnect, disconnect_label, side] {
|
||||
if (wivrn::ui::button(ICON_FA_DOOR_OPEN, disconnect_label, wivrn::ui::button_style::danger, {0, side}))
|
||||
request_disconnect = true;
|
||||
}});
|
||||
wivrn::ui::top_bar(top_bar_h, wivrn_logo, top_items);
|
||||
|
||||
if (request_disconnect)
|
||||
{
|
||||
ImGui::BeginChild("Tabs", {tab_width, ImGui::GetContentRegionMax().y - ImGui::GetWindowContentRegionMin().y});
|
||||
network_session->send_control(from_headset::get_running_applications{});
|
||||
ImGui::OpenPopup("confirm disconnect");
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10));
|
||||
if (wivrn::ui::begin_modal("confirm disconnect", _("Disconnect")))
|
||||
{
|
||||
const std::string kill_apps = ICON_FA_XMARK " " + _("Stop all applications");
|
||||
const std::string disconnect_only = ICON_FA_DOOR_OPEN " " + _("Disconnect");
|
||||
const std::string cancel = _("Cancel");
|
||||
|
||||
auto target = next_gui_status.load();
|
||||
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), target, stream_tab::applications, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
const float gap = ImGui::GetStyle().ItemSpacing.x;
|
||||
|
||||
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), target, stream_tab::application_launcher, {tab_width, 0}))
|
||||
const float kill_apps_w = ImGui::CalcTextSize(kill_apps.c_str()).x + wivrn::ui::metrics::button_padding.x * 2;
|
||||
const float disconnect_only_w = ImGui::CalcTextSize(disconnect_only.c_str()).x + wivrn::ui::metrics::button_padding.x * 2;
|
||||
const float cancel_w = ImGui::CalcTextSize(cancel.c_str()).x + wivrn::ui::metrics::button_padding.x * 2;
|
||||
const float buttons_width = disconnect_only_w + cancel_w + kill_apps_w + 2 * gap;
|
||||
|
||||
ImGui::Dummy({std::max<float>(500, buttons_width), 0});
|
||||
|
||||
const auto & t = wivrn::ui::current();
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, t.text_muted);
|
||||
ImGui::TextWrapped("%s", _S("Disconnect from the server and return to the lobby?"));
|
||||
ImGui::TextWrapped("%s", _S("The following applications/overlays are open:"));
|
||||
|
||||
for (const auto & app: running_applications.lock()->applications)
|
||||
ImGui::TextWrapped("• %s", app.name.c_str());
|
||||
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::Dummy({0, 12});
|
||||
|
||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - buttons_width);
|
||||
|
||||
if (button(kill_apps, wivrn::ui::button_style::danger, {kill_apps_w, 0}))
|
||||
{
|
||||
for (const auto & app: running_applications.lock()->applications)
|
||||
network_session->send_control(from_headset::stop_application{.id = app.id});
|
||||
exit();
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
||||
if (button(disconnect_only, wivrn::ui::button_style::primary, {disconnect_only_w, 0}))
|
||||
{
|
||||
exit();
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
||||
if (button(cancel, wivrn::ui::button_style::secondary, {cancel_w, 0}))
|
||||
{
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
|
||||
wivrn::ui::end_modal();
|
||||
}
|
||||
|
||||
// navigation sidebar, the settings items swap the page but keep the coarse settings tab
|
||||
wivrn::ui::begin_sidebar(top_bar_h, tab_width, 2);
|
||||
{
|
||||
wivrn::ui::nav_section(_cS("tab group", "STREAM"));
|
||||
if (wivrn::ui::nav_item(ICON_FA_LIST, _cS("tab label", "Applications"), gui_status == stream_tab::applications))
|
||||
next_gui_status = stream_tab::applications;
|
||||
if (wivrn::ui::nav_item(ICON_FA_ROCKET, _cS("tab label", "Start"), false))
|
||||
{
|
||||
apps.reset();
|
||||
network_session->send_control(from_headset::get_application_list{
|
||||
@@ -919,40 +1013,42 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
.country = application::get_messages_info().country,
|
||||
.variant = application::get_messages_info().variant,
|
||||
});
|
||||
next_gui_status = stream_tab::application_launcher;
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (wivrn::ui::nav_item(ICON_FA_COMPUTER, _S("Statistics"), gui_status == stream_tab::stats))
|
||||
next_gui_status = stream_tab::stats;
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), target, stream_tab::settings, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
wivrn::ui::nav_section(_cS("tab group", "SETTINGS"));
|
||||
auto settings_item = [&](const char * icon, const std::string & label, settings_page page) {
|
||||
if (wivrn::ui::nav_item(icon, label, gui_status == stream_tab::settings and current_settings_page == page))
|
||||
{
|
||||
current_settings_page = page;
|
||||
next_gui_status = stream_tab::settings;
|
||||
}
|
||||
};
|
||||
settings_item(ICON_FA_IMAGE, _cS("tab label", "Video"), settings_page::video);
|
||||
settings_item(ICON_FA_VOLUME_HIGH, _cS("tab label", "Audio"), settings_page::audio);
|
||||
settings_item(ICON_FA_TOWER_BROADCAST, _cS("tab label", "Streaming"), settings_page::streaming);
|
||||
settings_item(ICON_FA_WAND_MAGIC_SPARKLES, _cS("tab label", "Post-processing"), settings_page::post_processing);
|
||||
settings_item(ICON_FA_KEYBOARD, _cS("tab label", "Devices"), settings_page::devices);
|
||||
settings_item(ICON_FA_LOCATION_CROSSHAIRS, _cS("tab label", "Tracking"), settings_page::tracking);
|
||||
settings_item(ICON_FA_GEARS, _cS("tab label", "System"), settings_page::system);
|
||||
settings_item(ICON_FA_PALETTE, _cS("tab label", "Theme"), settings_page::theme);
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), target, stream_tab::stats, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
int n_items_at_end = 4;
|
||||
ImGui::SetCursorPosY(ImGui::GetContentRegionMax().y - n_items_at_end * ImGui::GetCurrentContext()->FontSize - (n_items_at_end * 2) * style.FramePadding.y - (n_items_at_end - 1) * style.ItemSpacing.y - style.WindowPadding.y);
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_CHART_LINE " " + _("Statistics overlay"), target, stream_tab::overlay_only, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), target, stream_tab::compact, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), target, stream_tab::hidden, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
bool dummy = false;
|
||||
if (RadioButtonWithoutCheckBox(ICON_FA_DOOR_OPEN " " + _("Disconnect"), dummy, true, {tab_width, 0}))
|
||||
exit();
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_FramePadding
|
||||
ImGui::EndChild();
|
||||
next_gui_status = target;
|
||||
// pinned to the bottom
|
||||
wivrn::ui::sidebar_footer();
|
||||
if (wivrn::ui::nav_item(ICON_FA_CHART_LINE, _cS("tab label", "Statistics overlay"), false))
|
||||
next_gui_status = stream_tab::overlay_only;
|
||||
if (wivrn::ui::nav_item(ICON_FA_MINIMIZE, _cS("tab label", "Compact view"), false))
|
||||
next_gui_status = stream_tab::compact;
|
||||
}
|
||||
ImGui::PopStyleColor(); // ImGuiCol_ChildBg
|
||||
wivrn::ui::end_sidebar();
|
||||
|
||||
wivrn::ui::shell_dividers(top_bar_h, tab_width);
|
||||
}
|
||||
ImGui::End();
|
||||
ImGui::PopStyleVar(2); // ImGuiStyleVar_ChildBorderSize, ImGuiStyleVar_WindowPadding
|
||||
ImGui::PopStyleVar(2); // ImGuiStyleVar_ChildBorderSize, ImGuiStyleVar_WindowPadding
|
||||
ImGui::PopStyleColor(); // ImGuiCol_WindowBg
|
||||
|
||||
auto layers = imgui_ctx->end_frame();
|
||||
|
||||
@@ -1034,13 +1130,13 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
}
|
||||
}
|
||||
|
||||
// Add the layer with the GUI
|
||||
for (auto [_, layer]: layers)
|
||||
{
|
||||
add_quad_layer(layer.layerFlags, layer.space, layer.eyeVisibility, layer.subImage, layer.pose, layer.size);
|
||||
if (composition_layer_depth_test_supported)
|
||||
set_depth_test(true, XR_COMPARE_OP_LESS_FB);
|
||||
if (alpha < 1 and composition_layer_color_scale_bias_supported)
|
||||
|
||||
else if (alpha < 1 and composition_layer_color_scale_bias_supported)
|
||||
set_color_scale_bias({alpha, alpha, alpha, alpha}, {});
|
||||
}
|
||||
|
||||
|
||||
+18
-6
@@ -59,6 +59,15 @@ void init_stream(T & stream)
|
||||
{
|
||||
stream.set_receive_buffer_size(1024 * 1024 * 5);
|
||||
}
|
||||
|
||||
auto & port(sockaddr_in & sa)
|
||||
{
|
||||
return sa.sin_port;
|
||||
}
|
||||
auto & port(sockaddr_in6 & sa)
|
||||
{
|
||||
return sa.sin6_port;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
template <typename T>
|
||||
@@ -120,7 +129,9 @@ void wivrn_session::handshake(T address, bool tcp_only, crypto::key & headset_ke
|
||||
{
|
||||
stream = decltype(stream)();
|
||||
|
||||
stream.connect(address, h.stream_port);
|
||||
port(address) = htons(h.stream_port);
|
||||
|
||||
stream.connect(address);
|
||||
init_stream(stream);
|
||||
}
|
||||
break;
|
||||
@@ -171,7 +182,8 @@ void wivrn_session::handshake(T address, bool tcp_only, crypto::key & headset_ke
|
||||
stream = decltype(stream)();
|
||||
|
||||
stream.set_aes_key_and_ivs(s.stream_key, s.stream_iv_header_to_headset, s.stream_iv_header_from_headset);
|
||||
stream.connect(address, h.stream_port);
|
||||
port(address) = htons(h.stream_port);
|
||||
stream.connect(address);
|
||||
init_stream(stream);
|
||||
}
|
||||
break;
|
||||
@@ -209,8 +221,8 @@ void wivrn_session::handshake(T address, bool tcp_only, crypto::key & headset_ke
|
||||
}
|
||||
}
|
||||
|
||||
wivrn_session::wivrn_session(in6_addr address, int port, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter) :
|
||||
control(address, port), stream(-1), address(address)
|
||||
wivrn_session::wivrn_session(sockaddr_in6 address, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter) :
|
||||
control(address), stream(-1), address(address.sin6_addr)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -222,8 +234,8 @@ wivrn_session::wivrn_session(in6_addr address, int port, bool tcp_only, crypto::
|
||||
}
|
||||
}
|
||||
|
||||
wivrn_session::wivrn_session(in_addr address, int port, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter) :
|
||||
control(address, port), stream(-1), address(address)
|
||||
wivrn_session::wivrn_session(sockaddr_in address, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter) :
|
||||
control(address), stream(-1), address(address.sin_addr)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -55,8 +55,8 @@ private:
|
||||
public:
|
||||
std::variant<in_addr, in6_addr> address;
|
||||
|
||||
wivrn_session(in6_addr address, int port, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter);
|
||||
wivrn_session(in_addr address, int port, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter);
|
||||
wivrn_session(sockaddr_in6 address, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter);
|
||||
wivrn_session(sockaddr_in address, bool tcp_only, crypto::key & headset_keypair, std::function<std::string(int fd)> pin_enter);
|
||||
wivrn_session(const wivrn_session &) = delete;
|
||||
wivrn_session & operator=(const wivrn_session &) = delete;
|
||||
|
||||
|
||||
+189
-127
@@ -3,6 +3,7 @@
|
||||
#include "application.h"
|
||||
#include "mdns.h"
|
||||
#include "utils/named_thread.h"
|
||||
#include "utils/overloaded.h"
|
||||
#include <arpa/inet.h>
|
||||
#include <ifaddrs.h>
|
||||
#include <net/if.h>
|
||||
@@ -35,31 +36,150 @@ std::string ip_address_to_string(const in6_addr & address)
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string ip_address_to_string(const sockaddr * address)
|
||||
struct if_addr
|
||||
{
|
||||
if (address->sa_family == AF_INET)
|
||||
{
|
||||
return ip_address_to_string(((struct sockaddr_in *)address)->sin_addr);
|
||||
}
|
||||
else if (address->sa_family == AF_INET6)
|
||||
{
|
||||
return ip_address_to_string(((struct sockaddr_in6 *)address)->sin6_addr);
|
||||
}
|
||||
std::string if_name;
|
||||
std::variant<sockaddr_in6, sockaddr_in> addr;
|
||||
};
|
||||
|
||||
return "";
|
||||
std::string to_string(const std::variant<sockaddr_in6, sockaddr_in> & addr)
|
||||
{
|
||||
return std::visit(utils::overloaded{
|
||||
[](const sockaddr_in6 & a) {
|
||||
return ip_address_to_string(a.sin6_addr);
|
||||
},
|
||||
[](const sockaddr_in & a) {
|
||||
return ip_address_to_string(a.sin_addr);
|
||||
},
|
||||
},
|
||||
addr);
|
||||
}
|
||||
|
||||
std::set<if_addr> get_if_addrs(int port)
|
||||
{
|
||||
struct Deleter
|
||||
{
|
||||
void operator()(ifaddrs * a)
|
||||
{
|
||||
freeifaddrs(a);
|
||||
}
|
||||
};
|
||||
using ifaddr_ptr = std::unique_ptr<ifaddrs, Deleter>;
|
||||
ifaddrs * addresses_raw;
|
||||
if (getifaddrs(&addresses_raw) < 0)
|
||||
{
|
||||
spdlog::error("Cannot get network interfaces: {}", strerror(errno));
|
||||
return {};
|
||||
}
|
||||
ifaddr_ptr addresses{addresses_raw};
|
||||
|
||||
const int required_flags = IFF_UP | IFF_MULTICAST;
|
||||
const int forbidden_flags = IFF_LOOPBACK;
|
||||
|
||||
std::set<if_addr> result;
|
||||
for (ifaddrs * i = addresses.get(); i; i = i->ifa_next)
|
||||
{
|
||||
spdlog::debug("interface {}, address {} flags 0x{:x} required 0x{:x} forbidden 0x{:x}", i->ifa_name, uintptr_t(i->ifa_addr), i->ifa_flags, required_flags, forbidden_flags);
|
||||
if (i->ifa_addr == nullptr)
|
||||
continue;
|
||||
|
||||
if ((i->ifa_flags & required_flags) != required_flags)
|
||||
continue;
|
||||
|
||||
if ((i->ifa_flags & forbidden_flags) != 0)
|
||||
continue;
|
||||
|
||||
if (i->ifa_addr->sa_family == AF_INET6)
|
||||
{
|
||||
struct sockaddr_in6 * saddr = (struct sockaddr_in6 *)i->ifa_addr;
|
||||
static const unsigned char localhost[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
|
||||
static const unsigned char localhost_mapped[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0x7f, 0, 0, 1};
|
||||
if (memcmp(saddr->sin6_addr.s6_addr, localhost, 16) &&
|
||||
memcmp(saddr->sin6_addr.s6_addr, localhost_mapped, 16))
|
||||
{
|
||||
saddr->sin6_port = htons(port);
|
||||
result.insert({.if_name = i->ifa_name, .addr = *saddr});
|
||||
}
|
||||
}
|
||||
else if (i->ifa_addr->sa_family == AF_INET)
|
||||
{
|
||||
struct sockaddr_in * saddr = (struct sockaddr_in *)i->ifa_addr;
|
||||
if (saddr->sin_addr.s_addr != htonl(INADDR_LOOPBACK))
|
||||
{
|
||||
saddr->sin_port = htons(port);
|
||||
result.insert({.if_name = i->ifa_name, .addr = *saddr});
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
spdlog::warn("unknown family {}", i->ifa_addr->sa_family);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
static bool operator==(const in_addr & a, const in_addr & b)
|
||||
static std::strong_ordering operator<=>(const in_addr & a, const in_addr & b) noexcept
|
||||
{
|
||||
return memcmp(&a, &b, sizeof(a)) == 0;
|
||||
auto x = memcmp(&a, &b, sizeof(a));
|
||||
if (x < 0)
|
||||
return std::strong_ordering::less;
|
||||
if (x > 0)
|
||||
return std::strong_ordering::greater;
|
||||
return std::strong_ordering::equal;
|
||||
}
|
||||
|
||||
static bool operator==(const in6_addr & a, const in6_addr & b)
|
||||
static std::strong_ordering operator<=>(const in6_addr & a, const in6_addr & b) noexcept
|
||||
{
|
||||
return memcmp(&a, &b, sizeof(a)) == 0;
|
||||
auto x = memcmp(&a, &b, sizeof(a));
|
||||
if (x < 0)
|
||||
return std::strong_ordering::less;
|
||||
if (x > 0)
|
||||
return std::strong_ordering::greater;
|
||||
return std::strong_ordering::equal;
|
||||
}
|
||||
|
||||
static std::strong_ordering operator<=>(const sockaddr_in & a, const sockaddr_in & b) noexcept
|
||||
{
|
||||
if (auto comp = a.sin_addr <=> b.sin_addr; comp != std::strong_ordering::equal)
|
||||
return comp;
|
||||
return a.sin_port <=> b.sin_port;
|
||||
}
|
||||
|
||||
static std::strong_ordering operator<=>(const sockaddr_in6 & a, const sockaddr_in6 & b) noexcept
|
||||
{
|
||||
if (auto comp = a.sin6_addr <=> b.sin6_addr; comp != std::strong_ordering::equal)
|
||||
return comp;
|
||||
return a.sin6_port <=> b.sin6_port;
|
||||
}
|
||||
|
||||
static bool operator==(const sockaddr_in & a, const sockaddr_in & b) noexcept
|
||||
{
|
||||
return (a <=> b) == std::strong_ordering::equal;
|
||||
}
|
||||
static bool operator==(const sockaddr_in6 & a, const sockaddr_in6 & b) noexcept
|
||||
{
|
||||
return (a <=> b) == std::strong_ordering::equal;
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
static std::strong_ordering operator<=>(const if_addr & a, const if_addr & b) noexcept
|
||||
{
|
||||
// Sort by interface name first
|
||||
// We'll get eth < usb < wlan
|
||||
if (auto comp = a.if_name <=> b.if_name; comp != std::strong_ordering::equal)
|
||||
return comp;
|
||||
return a.addr <=> b.addr;
|
||||
}
|
||||
|
||||
[[maybe_unused]] static bool operator==(const if_addr & a, const if_addr & b) noexcept
|
||||
{
|
||||
return (a <=> b) == std::strong_ordering::equal;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
class dnssd_cache
|
||||
{
|
||||
public:
|
||||
@@ -70,8 +190,8 @@ public:
|
||||
int port;
|
||||
bool operator==(const srv &) const noexcept = default;
|
||||
};
|
||||
using a = in_addr;
|
||||
using aaaa = in6_addr;
|
||||
using a = sockaddr_in;
|
||||
using aaaa = sockaddr_in6;
|
||||
struct txt
|
||||
{
|
||||
std::string key;
|
||||
@@ -85,6 +205,7 @@ private:
|
||||
steady_clock::time_point timeout;
|
||||
std::string name;
|
||||
std::variant<ptr, srv, a, aaaa, txt> record;
|
||||
std::string if_name;
|
||||
|
||||
bool operator==(const cache_entry & other) const noexcept
|
||||
{
|
||||
@@ -95,108 +216,34 @@ private:
|
||||
std::vector<cache_entry> cache;
|
||||
std::vector<std::tuple<steady_clock::time_point, mdns_record_type, std::string>> last_queries;
|
||||
|
||||
std::set<if_addr> addresses;
|
||||
std::map<int, std::string> if_names; // socket fd to interface name
|
||||
|
||||
// pollfds[0] is used for inter-thread communication, the others are for mDNS
|
||||
std::vector<pollfd> pollfds;
|
||||
int itc_fd;
|
||||
|
||||
void open_client_sockets(int port = 0)
|
||||
void open_client_sockets()
|
||||
{
|
||||
close_client_sockets();
|
||||
std::vector<int> sockets;
|
||||
|
||||
ifaddrs * addresses;
|
||||
if (getifaddrs(&addresses) < 0)
|
||||
for (const auto & addr: addresses)
|
||||
{
|
||||
spdlog::error("Cannot get network interfaces: {}", strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
const int required_flags = IFF_UP | IFF_MULTICAST;
|
||||
const int forbidden_flags = IFF_LOOPBACK;
|
||||
|
||||
// std::vector<std::string> interfaces_ipv4;
|
||||
// std::vector<std::string> interfaces_ipv6;
|
||||
|
||||
for (ifaddrs * i = addresses; i; i = i->ifa_next)
|
||||
{
|
||||
spdlog::debug("address {} flags 0x{:x} required 0x{:x} forbidden 0x{:x}", uintptr_t(i->ifa_addr), i->ifa_flags, required_flags, forbidden_flags);
|
||||
if (i->ifa_addr == nullptr)
|
||||
continue;
|
||||
|
||||
if ((i->ifa_flags & required_flags) != required_flags)
|
||||
continue;
|
||||
|
||||
if ((i->ifa_flags & forbidden_flags) != 0)
|
||||
continue;
|
||||
|
||||
if (i->ifa_addr->sa_family == AF_INET6)
|
||||
int sock = std::visit(utils::overloaded{
|
||||
[](sockaddr_in6 const & a) { return mdns_socket_open_ipv6(&a); },
|
||||
[](sockaddr_in const & a) { return mdns_socket_open_ipv4(&a); },
|
||||
},
|
||||
addr.addr);
|
||||
if (sock >= 0)
|
||||
{
|
||||
// if (std::any_of(interfaces_ipv6.begin(), interfaces_ipv6.end(), [&](const auto & j) { return j == i->ifa_name; }))
|
||||
// continue;
|
||||
if_names.emplace(sock, addr.if_name);
|
||||
|
||||
struct sockaddr_in6 * saddr = (struct sockaddr_in6 *)i->ifa_addr;
|
||||
// Ignore link-local addresses
|
||||
if (saddr->sin6_scope_id)
|
||||
{
|
||||
spdlog::debug("Ignoring link-local address {}", ip_address_to_string(i->ifa_addr));
|
||||
continue;
|
||||
}
|
||||
static const unsigned char localhost[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
|
||||
static const unsigned char localhost_mapped[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0x7f, 0, 0, 1};
|
||||
if (memcmp(saddr->sin6_addr.s6_addr, localhost, 16) &&
|
||||
memcmp(saddr->sin6_addr.s6_addr, localhost_mapped, 16))
|
||||
{
|
||||
saddr->sin6_port = htons(port);
|
||||
int sock = mdns_socket_open_ipv6(saddr);
|
||||
if (sock >= 0)
|
||||
{
|
||||
sockets.push_back(sock);
|
||||
|
||||
spdlog::info("Local IPv6 address: {}", ip_address_to_string(i->ifa_addr));
|
||||
// interfaces_ipv6.push_back(i->ifa_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
spdlog::warn("Cannot open socket bound to {}: {}", ip_address_to_string(i->ifa_addr), strerror(errno));
|
||||
}
|
||||
}
|
||||
else
|
||||
spdlog::debug("ignore localhost (IPv6)");
|
||||
}
|
||||
else if (i->ifa_addr->sa_family == AF_INET)
|
||||
{
|
||||
// if (std::any_of(interfaces_ipv4.begin(), interfaces_ipv4.end(), [&](const auto & j) { return j == i->ifa_name; }))
|
||||
// continue;
|
||||
|
||||
struct sockaddr_in * saddr = (struct sockaddr_in *)i->ifa_addr;
|
||||
if (saddr->sin_addr.s_addr != htonl(INADDR_LOOPBACK))
|
||||
{
|
||||
saddr->sin_port = htons(port);
|
||||
int sock = mdns_socket_open_ipv4(saddr);
|
||||
if (sock >= 0)
|
||||
{
|
||||
sockets.push_back(sock);
|
||||
|
||||
spdlog::info("Local IPv4 address: {}", ip_address_to_string(i->ifa_addr));
|
||||
// interfaces_ipv4.push_back(i->ifa_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
spdlog::warn("Cannot open socket bound to {}: {}", ip_address_to_string(i->ifa_addr), strerror(errno));
|
||||
}
|
||||
}
|
||||
else
|
||||
spdlog::debug("ignore localhost (IPv4)");
|
||||
spdlog::info("Local address ({}): {}", addr.if_name, to_string(addr.addr));
|
||||
}
|
||||
else
|
||||
{
|
||||
spdlog::warn("unknown family {}", i->ifa_addr->sa_family);
|
||||
}
|
||||
spdlog::warn("Failed to open socket for {} {}", addr.if_name, to_string(addr.addr));
|
||||
}
|
||||
|
||||
freeifaddrs(addresses);
|
||||
|
||||
pollfds.reserve(sockets.size() + 1);
|
||||
pollfds.reserve(if_names.size() + 1);
|
||||
|
||||
int fds[2];
|
||||
if (pipe(fds) < 0)
|
||||
@@ -208,7 +255,7 @@ private:
|
||||
itc_fd = fds[1];
|
||||
pollfds.push_back({.fd = fds[0], .events = POLLIN});
|
||||
|
||||
for (int socket: sockets)
|
||||
for (auto [socket, _]: if_names)
|
||||
pollfds.push_back(pollfd{.fd = socket, .events = POLLIN});
|
||||
}
|
||||
|
||||
@@ -218,6 +265,7 @@ private:
|
||||
mdns_socket_close(socket.fd);
|
||||
|
||||
pollfds.clear();
|
||||
if_names.clear();
|
||||
itc_fd = -1;
|
||||
}
|
||||
|
||||
@@ -240,13 +288,13 @@ private:
|
||||
{
|
||||
type = "A";
|
||||
auto addr = std::get<a>(entry.record);
|
||||
record = ip_address_to_string(addr);
|
||||
record = ip_address_to_string(addr.sin_addr);
|
||||
}
|
||||
else if (std::holds_alternative<aaaa>(entry.record))
|
||||
{
|
||||
type = "AAAA";
|
||||
auto addr = std::get<aaaa>(entry.record);
|
||||
record = ip_address_to_string(addr);
|
||||
record = ip_address_to_string(addr.sin6_addr);
|
||||
}
|
||||
else if (std::holds_alternative<txt>(entry.record))
|
||||
{
|
||||
@@ -285,7 +333,7 @@ private:
|
||||
spdlog::info("Sending query for {}, type {}", service_name, record_type_name(record_type));
|
||||
}
|
||||
|
||||
void update(mdns_string_t entry, std::variant<ptr, srv, a, aaaa, txt> record, int ttl)
|
||||
void update(mdns_string_t entry, std::variant<ptr, srv, a, aaaa, txt> record, int ttl, std::string if_name)
|
||||
{
|
||||
auto now = steady_clock::now();
|
||||
|
||||
@@ -294,6 +342,7 @@ private:
|
||||
.timeout = now + seconds(ttl),
|
||||
.name = std::string(entry.str, entry.length),
|
||||
.record = std::move(record),
|
||||
.if_name = std::move(if_name),
|
||||
};
|
||||
|
||||
// log_entry(e);
|
||||
@@ -342,26 +391,28 @@ private:
|
||||
case MDNS_RECORDTYPE_PTR: {
|
||||
char namebuffer[256];
|
||||
auto ptr_record = mdns_record_parse_ptr(data, size, record_offset, record_length, namebuffer, sizeof(namebuffer));
|
||||
self->update(entrystr, std::string{ptr_record.str, ptr_record.length}, ttl);
|
||||
self->update(entrystr, std::string{ptr_record.str, ptr_record.length}, ttl, self->if_names[sock]);
|
||||
break;
|
||||
}
|
||||
|
||||
case MDNS_RECORDTYPE_SRV: {
|
||||
char namebuffer[256];
|
||||
auto srv_record = mdns_record_parse_srv(data, size, record_offset, record_length, namebuffer, sizeof(namebuffer));
|
||||
self->update(entrystr, srv{{srv_record.name.str, srv_record.name.length}, srv_record.port}, ttl);
|
||||
self->update(entrystr, srv{{srv_record.name.str, srv_record.name.length}, srv_record.port}, ttl, self->if_names[sock]);
|
||||
break;
|
||||
}
|
||||
|
||||
case MDNS_RECORDTYPE_A: {
|
||||
sockaddr_in ipv4_buffer;
|
||||
self->update(entrystr, mdns_record_parse_a(data, size, record_offset, record_length, &ipv4_buffer)->sin_addr, ttl);
|
||||
self->update(entrystr, *mdns_record_parse_a(data, size, record_offset, record_length, &ipv4_buffer), ttl, self->if_names[sock]);
|
||||
break;
|
||||
}
|
||||
|
||||
case MDNS_RECORDTYPE_AAAA: {
|
||||
sockaddr_in6 ipv6_buffer;
|
||||
self->update(entrystr, mdns_record_parse_aaaa(data, size, record_offset, record_length, &ipv6_buffer)->sin6_addr, ttl);
|
||||
mdns_record_parse_aaaa(data, size, record_offset, record_length, &ipv6_buffer);
|
||||
ipv6_buffer.sin6_scope_id = ((sockaddr_in6 *)from)->sin6_scope_id;
|
||||
self->update(entrystr, ipv6_buffer, ttl, self->if_names[sock]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -373,7 +424,7 @@ private:
|
||||
{
|
||||
std::string key{txt_buffer[i].key.str, txt_buffer[i].key.length};
|
||||
std::string value{txt_buffer[i].value.str, txt_buffer[i].value.length};
|
||||
self->update(entrystr, txt{key, value}, ttl);
|
||||
self->update(entrystr, txt{key, value}, ttl, self->if_names[sock]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -402,8 +453,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (pollfds.size() < 2)
|
||||
open_client_sockets(5353);
|
||||
if (auto addr = get_if_addrs(5353); addr != addresses)
|
||||
{
|
||||
std::swap(addr, addresses);
|
||||
open_client_sockets();
|
||||
}
|
||||
|
||||
log_query(record, service_name);
|
||||
std::array<uint8_t, 2048> buffer;
|
||||
@@ -448,9 +502,9 @@ public:
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::vector<std::pair<T, steady_clock::time_point>> read(const std::string & name)
|
||||
std::vector<std::tuple<T, std::string, steady_clock::time_point>> read(const std::string & name)
|
||||
{
|
||||
std::vector<std::pair<T, steady_clock::time_point>> entries;
|
||||
std::vector<std::tuple<T, std::string, steady_clock::time_point>> entries;
|
||||
auto now = steady_clock::now();
|
||||
|
||||
std::erase_if(cache, [now](const cache_entry & i) {
|
||||
@@ -460,7 +514,7 @@ public:
|
||||
for (const auto & i: cache)
|
||||
{
|
||||
if (i.name == name && std::holds_alternative<T>(i.record))
|
||||
entries.emplace_back(std::get<T>(i.record), i.timeout);
|
||||
entries.emplace_back(std::get<T>(i.record), i.if_name, i.timeout);
|
||||
}
|
||||
|
||||
return entries;
|
||||
@@ -468,7 +522,8 @@ public:
|
||||
|
||||
dnssd_cache()
|
||||
{
|
||||
open_client_sockets(5353);
|
||||
addresses = get_if_addrs(5353);
|
||||
open_client_sockets();
|
||||
}
|
||||
|
||||
dnssd_cache(const dnssd_cache &) = delete;
|
||||
@@ -503,7 +558,7 @@ void wivrn_discover::discover(std::string service_name)
|
||||
}
|
||||
poll_timeout = std::min(poll_timeout, duration_cast<milliseconds>(next_query - now));
|
||||
|
||||
for (auto [ptr, ttl]: cache->read<dnssd_cache::ptr>(service_name))
|
||||
for (auto [ptr, _, ttl]: cache->read<dnssd_cache::ptr>(service_name))
|
||||
{
|
||||
bool srv_found = false;
|
||||
auto srv_min_ttl = milliseconds::max();
|
||||
@@ -515,7 +570,9 @@ void wivrn_discover::discover(std::string service_name)
|
||||
else
|
||||
s.name = ptr;
|
||||
|
||||
for (auto [srv, ttl]: cache->read<dnssd_cache::srv>(ptr))
|
||||
std::multimap<std::string, decltype(service::address::address)> addr_by_if_name;
|
||||
|
||||
for (auto [srv, _, ttl]: cache->read<dnssd_cache::srv>(ptr))
|
||||
{
|
||||
srv_found = true;
|
||||
srv_min_ttl = std::min(duration_cast<milliseconds>(ttl - now), srv_min_ttl);
|
||||
@@ -533,21 +590,26 @@ void wivrn_discover::discover(std::string service_name)
|
||||
|
||||
bool address_found = false;
|
||||
auto address_min_ttl = milliseconds::max();
|
||||
for (auto [a, ttl]: cache->read<dnssd_cache::a>(srv.hostname))
|
||||
for (auto [a, if_name, ttl]: cache->read<dnssd_cache::a>(srv.hostname))
|
||||
{
|
||||
address_found = true;
|
||||
address_min_ttl = std::min(duration_cast<milliseconds>(ttl - now), address_min_ttl);
|
||||
s.addresses.push_back(a);
|
||||
a.sin_port = htons(srv.port);
|
||||
addr_by_if_name.emplace(if_name, a);
|
||||
}
|
||||
|
||||
for (auto [aaaa, ttl]: cache->read<dnssd_cache::aaaa>(srv.hostname))
|
||||
for (auto [aaaa, if_name, ttl]: cache->read<dnssd_cache::aaaa>(srv.hostname))
|
||||
{
|
||||
address_found = true;
|
||||
address_min_ttl = std::min(duration_cast<milliseconds>(ttl - now), address_min_ttl);
|
||||
s.addresses.push_back(aaaa);
|
||||
aaaa.sin6_port = htons(srv.port);
|
||||
addr_by_if_name.emplace(if_name, aaaa);
|
||||
}
|
||||
|
||||
for (auto [txt_record, ttl]: cache->read<dnssd_cache::txt>(ptr))
|
||||
for (auto && [if_name, addr]: addr_by_if_name)
|
||||
s.addresses.push_back({.interface = std::move(if_name), .address = addr});
|
||||
|
||||
for (auto [txt_record, _, ttl]: cache->read<dnssd_cache::txt>(ptr))
|
||||
{
|
||||
s.txt[txt_record.key] = txt_record.value;
|
||||
}
|
||||
|
||||
@@ -19,12 +19,17 @@ class wivrn_discover
|
||||
public:
|
||||
struct service
|
||||
{
|
||||
struct address
|
||||
{
|
||||
std::string interface;
|
||||
std::variant<sockaddr_in, sockaddr_in6> address;
|
||||
};
|
||||
std::string name;
|
||||
std::string hostname;
|
||||
int port;
|
||||
bool tcp_only = false;
|
||||
|
||||
std::vector<std::variant<in_addr, in6_addr>> addresses;
|
||||
std::vector<address> addresses;
|
||||
std::map<std::string, std::string> txt;
|
||||
std::chrono::steady_clock::time_point ttl;
|
||||
std::string pin;
|
||||
|
||||
@@ -29,9 +29,15 @@ struct packed_quaternion
|
||||
{
|
||||
uint32_t value;
|
||||
|
||||
static packed_quaternion from_quaternion(const XrQuaternionf & q)
|
||||
static packed_quaternion from_quaternion(XrQuaternionf q)
|
||||
{
|
||||
assert(std::abs(q.w * q.w + q.x * q.x + q.y * q.y + q.z * q.z - 1) < 0.01);
|
||||
auto norm = std::sqrt(q.w * q.w + q.x * q.x + q.y * q.y + q.z * q.z);
|
||||
assert(std::abs(norm - 1) < 0.01);
|
||||
|
||||
q.w /= norm;
|
||||
q.x /= norm;
|
||||
q.y /= norm;
|
||||
q.z /= norm;
|
||||
|
||||
float abs_w = std::abs(q.w);
|
||||
float abs_x = std::abs(q.x);
|
||||
@@ -81,7 +87,7 @@ struct packed_quaternion
|
||||
float q1 = (int((value >> 20) & 0x3ff) - 512) * scale_factor;
|
||||
float q2 = (int((value >> 10) & 0x3ff) - 512) * scale_factor;
|
||||
float q3 = (int((value >> 0) & 0x3ff) - 512) * scale_factor;
|
||||
float q0 = std::sqrt(1 - q1 * q1 - q2 * q2 - q3 * q3);
|
||||
float q0 = std::sqrt(std::max(0.f, 1 - q1 * q1 - q2 * q2 - q3 * q3));
|
||||
|
||||
switch (value >> 30)
|
||||
{
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
* Ported from libgcrypt to openssl, intially from libotr:
|
||||
* Ported from libgcrypt to openssl, initially from libotr:
|
||||
* Off-the-Record Messaging library
|
||||
* Copyright (C) 2004-2014 Ian Goldberg, David Goulet, Rob Smits,
|
||||
* Chris Alexander, Willy Lew, Lisa Du,
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
* Ported from libgcrypt to openssl, intially from libotr:
|
||||
* Ported from libgcrypt to openssl, initially from libotr:
|
||||
* Off-the-Record Messaging library
|
||||
* Copyright (C) 2004-2014 Ian Goldberg, David Goulet, Rob Smits,
|
||||
* Chris Alexander, Willy Lew, Lisa Du,
|
||||
|
||||
@@ -33,8 +33,6 @@ static const int64_t max_extrapolation_ns = 80'000'000;
|
||||
#cmakedefine01 WIVRN_USE_VULKAN_ENCODE
|
||||
#cmakedefine01 WIVRN_USE_X264
|
||||
|
||||
#cmakedefine01 WIVRN_USE_SYSTEMD
|
||||
|
||||
#cmakedefine01 WIVRN_USE_PIPEWIRE
|
||||
|
||||
#cmakedefine01 WIVRN_FEATURE_DEBUG_GUI
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <type_traits>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
#include "packed_quaternion.h"
|
||||
@@ -41,7 +40,7 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
static constexpr int protocol_revision = 2;
|
||||
static constexpr int protocol_revision = 1;
|
||||
|
||||
enum class device_id : uint8_t
|
||||
{
|
||||
@@ -209,7 +208,6 @@ enum class stream_tab : uint8_t
|
||||
compact,
|
||||
stats,
|
||||
settings,
|
||||
bitrate_settings,
|
||||
foveation_settings,
|
||||
applications,
|
||||
application_launcher,
|
||||
@@ -652,6 +650,7 @@ struct session_state_changed
|
||||
struct user_presence_changed
|
||||
{
|
||||
bool present;
|
||||
XrTime change_time;
|
||||
};
|
||||
|
||||
struct stream_tab_changed
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <limits>
|
||||
#include <magic_enum.hpp>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <stdexcept>
|
||||
@@ -311,7 +312,7 @@ namespace details
|
||||
// Partition a structure into trivial portions (or single element when not trivial)
|
||||
template <
|
||||
typename T, // structure to partition
|
||||
typename Indices = std::tuple<>, // indices already partitionned
|
||||
typename Indices = std::tuple<>, // indices already partitioned
|
||||
typename Current_Indices = std::integer_sequence<size_t>, // indices of current partition
|
||||
size_t i = 0, // index of the first of remaining elements
|
||||
size_t offset = 0, // offset of previous element + its size
|
||||
@@ -380,7 +381,7 @@ struct trivial_bits<
|
||||
offset + padding + sizeof(boost::pfr::tuple_element_t<i, T>)>::types;
|
||||
};
|
||||
|
||||
// Serialize bits of a structure, partitionned by trivial_bits
|
||||
// Serialize bits of a structure, partitioned by trivial_bits
|
||||
template <typename T, typename Bits>
|
||||
struct serialize_bits;
|
||||
|
||||
@@ -495,6 +496,20 @@ struct serialization_traits<T, std::enable_if_t<std::is_enum_v<T>>>
|
||||
{
|
||||
h.feed("enum");
|
||||
h.feed(sizeof(T) * 8);
|
||||
h.feed("{");
|
||||
|
||||
bool first = true;
|
||||
for (auto [value, name]: magic_enum::enum_entries<T>())
|
||||
{
|
||||
if (not first)
|
||||
h.feed(",");
|
||||
first = false;
|
||||
|
||||
h.feed(name);
|
||||
h.feed("=");
|
||||
h.feed((std::underlying_type_t<T>)value);
|
||||
}
|
||||
h.feed("}");
|
||||
}
|
||||
|
||||
static void serialize(T value, serialization_packet & packet)
|
||||
|
||||
@@ -51,4 +51,12 @@ struct test
|
||||
float y;
|
||||
};
|
||||
static_assert(serialization_type_hash<test>(0) == hash("structure{int32,float32}"));
|
||||
|
||||
enum test_enum : uint32_t
|
||||
{
|
||||
foo,
|
||||
bar,
|
||||
foobar = 42
|
||||
};
|
||||
static_assert(serialization_type_hash<test_enum>(0) == hash("enum32{foo=0,bar=1,foobar=42}"));
|
||||
} // namespace
|
||||
|
||||
@@ -85,24 +85,14 @@ void wivrn::UDP::bind(sockaddr_in6 address)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
}
|
||||
|
||||
void wivrn::UDP::connect(in6_addr address, int port)
|
||||
void wivrn::UDP::connect(sockaddr_in6 sa)
|
||||
{
|
||||
sockaddr_in6 sa;
|
||||
sa.sin6_family = AF_INET6;
|
||||
sa.sin6_addr = address;
|
||||
sa.sin6_port = htons(port);
|
||||
|
||||
if (::connect(fd, (sockaddr *)&sa, sizeof(sa)) < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
}
|
||||
|
||||
void wivrn::UDP::connect(in_addr address, int port)
|
||||
void wivrn::UDP::connect(sockaddr_in sa)
|
||||
{
|
||||
sockaddr_in sa;
|
||||
sa.sin_family = AF_INET;
|
||||
sa.sin_addr = address;
|
||||
sa.sin_port = htons(port);
|
||||
|
||||
if (::connect(fd, (sockaddr *)&sa, sizeof(sa)) < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
}
|
||||
@@ -173,18 +163,13 @@ wivrn::TCP::TCP(int fd)
|
||||
init();
|
||||
}
|
||||
|
||||
wivrn::TCP::TCP(in6_addr address, int port)
|
||||
wivrn::TCP::TCP(sockaddr_in6 sa)
|
||||
{
|
||||
fd = socket(AF_INET6, SOCK_STREAM, 0);
|
||||
if (fd < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||
|
||||
sockaddr_in6 sa;
|
||||
sa.sin6_family = AF_INET6;
|
||||
sa.sin6_addr = address;
|
||||
sa.sin6_port = htons(port);
|
||||
|
||||
if (connect(fd, (sockaddr *)&sa, sizeof(sa)) < 0)
|
||||
{
|
||||
::close(fd);
|
||||
@@ -194,18 +179,13 @@ wivrn::TCP::TCP(in6_addr address, int port)
|
||||
init();
|
||||
}
|
||||
|
||||
wivrn::TCP::TCP(in_addr address, int port)
|
||||
wivrn::TCP::TCP(sockaddr_in sa)
|
||||
{
|
||||
fd = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if (fd < 0)
|
||||
throw std::system_error{errno, std::generic_category()};
|
||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||
|
||||
sockaddr_in sa;
|
||||
sa.sin_family = AF_INET;
|
||||
sa.sin_addr = address;
|
||||
sa.sin_port = htons(port);
|
||||
|
||||
if (connect(fd, (sockaddr *)&sa, sizeof(sa)) < 0)
|
||||
{
|
||||
::close(fd);
|
||||
|
||||
@@ -118,8 +118,8 @@ public:
|
||||
size_t send_raw(serialization_packet && packet);
|
||||
size_t send_many_raw(std::span<serialization_packet> packets);
|
||||
|
||||
void connect(in6_addr address, int port);
|
||||
void connect(in_addr address, int port);
|
||||
void connect(sockaddr_in6 address);
|
||||
void connect(sockaddr_in address);
|
||||
void bind(sockaddr_in6 address);
|
||||
void subscribe_multicast(in6_addr address);
|
||||
void unsubscribe_multicast(in6_addr address);
|
||||
@@ -144,8 +144,8 @@ class TCP : public fd_base
|
||||
|
||||
public:
|
||||
TCP() = default;
|
||||
TCP(in6_addr address, int port);
|
||||
TCP(in_addr address, int port);
|
||||
TCP(sockaddr_in6 address);
|
||||
TCP(sockaddr_in address);
|
||||
explicit TCP(int fd);
|
||||
|
||||
deserialization_packet receive_raw();
|
||||
|
||||
@@ -68,6 +68,18 @@
|
||||
<content_rating type="oars-1.1" />
|
||||
|
||||
<releases>
|
||||
<release version="26.9" date="2026-09-12">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v26.9</url>
|
||||
<description>
|
||||
<ul>
|
||||
<li>Revamped headset graphical user interface</li>
|
||||
<li>Forward gamepad inputs from headset to PC</li>
|
||||
<li>Enable XR_FB_body_tracking</li>
|
||||
<li>USB networking on Meta headsets</li>
|
||||
<li>Fixes for Vulkan video encode on NVIDIA (again)</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="26.6" date="2026-06-10">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v26.6</url>
|
||||
<description>
|
||||
@@ -142,7 +154,7 @@
|
||||
<li>Add XR_EXT_user_presence and XR_EXT_hand_interaction OpenXR extensions</li>
|
||||
<li>Fix vulkan video encode and performances issues with multiple nvenc encoders on NVIDIA GPUs</li>
|
||||
<li>Support 10-bit encoding on VAAPI for H.265 and AV1 codecs</li>
|
||||
<li>Xrizer is now the default OpenVR compatibility layer (may be overriden by distribution packages)</li>
|
||||
<li>Xrizer is now the default OpenVR compatibility layer (may be overridden by distribution packages)</li>
|
||||
<li>Added Slovak and Turkish translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
|
||||
@@ -132,6 +132,51 @@ Kirigami.ScrollablePage {
|
||||
toolTipText: i18n("Allows the use of lighthouse-based controllers and trackers.\nRequires SteamVR to be installed.\nDevices must be be powered on before connecting to WiVRn.\nAn external tool such as motoc is needed for calibration.")
|
||||
}
|
||||
}
|
||||
Controls.CheckBox {
|
||||
id: lh_max_extrapolation_enabled
|
||||
visible: Settings.steamvr_lh_supported && steamvr_lh.checked
|
||||
text: i18n("Clamp extrapolation for SteamVR tracked devices")
|
||||
}
|
||||
RowLayout {
|
||||
visible: Settings.steamvr_lh_supported && steamvr_lh.checked && lh_max_extrapolation_enabled.checked
|
||||
Kirigami.FormData.label: i18n("SteamVR max pose extrapolation")
|
||||
Controls.Slider {
|
||||
id: lh_max_extrapolation
|
||||
Layout.fillWidth: true
|
||||
from: 0.0
|
||||
to: 100.0
|
||||
stepSize: 1.0
|
||||
value: Settings.lhMaxExtrapolation
|
||||
}
|
||||
Controls.Label {
|
||||
text: i18ncp("value display for SteamVR max pose extrapolation", "%1ms", "%1ms", lh_max_extrapolation.value)
|
||||
Layout.preferredWidth: 35
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
Kirigami.ContextualHelpButton {
|
||||
toolTipText: i18n("Maximum time in milliseconds that poses may be extrapolated ahead for SteamVR tracked devices. Tune this value if you experience jittery or wobbly tracking.")
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
visible: Settings.steamvr_lh_supported && steamvr_lh.checked
|
||||
Kirigami.FormData.label: i18n("SteamVR joystick deadzone")
|
||||
Controls.Slider {
|
||||
id: lh_stick_deadzone
|
||||
Layout.fillWidth: true
|
||||
from: 0.0
|
||||
to: 0.9
|
||||
stepSize: 0.05
|
||||
value: Settings.lhStickDeadzone
|
||||
}
|
||||
Controls.Label {
|
||||
text: lh_stick_deadzone.value.toFixed(2)
|
||||
Layout.preferredWidth: 35
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
Kirigami.ContextualHelpButton {
|
||||
toolTipText: i18n("Deadzone to apply to joysticks on lighthouse-tracked controllers, such as Index.\nFor standalone controllers, deadzones may be adjusted via the headset's system settings.")
|
||||
}
|
||||
}
|
||||
|
||||
Controls.CheckBox {
|
||||
id: adb_custom
|
||||
@@ -237,7 +282,7 @@ Kirigami.ScrollablePage {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
Controls.Button {
|
||||
text: i18nc("browse to choose the OpenVR compatility to use", "Browse")
|
||||
text: i18nc("browse to choose the OpenVR compatibility to use", "Browse")
|
||||
visible: openvr_text.visible
|
||||
onClicked: openvr_browse.open()
|
||||
}
|
||||
@@ -289,6 +334,12 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Settings.debugGui = debug_gui.checked;
|
||||
Settings.steamVrLh = steamvr_lh.checked;
|
||||
if (lh_max_extrapolation_enabled.checked) {
|
||||
Settings.lhMaxExtrapolation = lh_max_extrapolation.value;
|
||||
} else {
|
||||
Settings.lhMaxExtrapolation = -1;
|
||||
}
|
||||
Settings.lhStickDeadzone = lh_stick_deadzone.value;
|
||||
Settings.hidForwarding = hid_forwarding.checked;
|
||||
|
||||
DashboardSettings.auto_connect_usb = auto_connect_usb.checked;
|
||||
@@ -298,6 +349,9 @@ Kirigami.ScrollablePage {
|
||||
select_game.load();
|
||||
debug_gui.checked = Settings.debugGui;
|
||||
steamvr_lh.checked = Settings.steamVrLh;
|
||||
lh_max_extrapolation_enabled.checked = Settings.lhMaxExtrapolationEnabled;
|
||||
lh_max_extrapolation.value = Settings.lhMaxExtrapolation;
|
||||
lh_stick_deadzone.value = Settings.lhStickDeadzone;
|
||||
hid_forwarding.checked = Settings.hidForwarding;
|
||||
|
||||
auto_connect_usb.checked = DashboardSettings.auto_connect_usb;
|
||||
|
||||
@@ -121,6 +121,9 @@ void Settings::emitAllChanged()
|
||||
openvrChanged();
|
||||
debugGuiChanged();
|
||||
steamVrLhChanged();
|
||||
lhMaxExtrapolationEnabledChanged();
|
||||
lhMaxExtrapolationChanged();
|
||||
lhStickDeadzoneChanged();
|
||||
hidForwardingChanged();
|
||||
portChanged();
|
||||
hostnameChanged();
|
||||
@@ -416,6 +419,55 @@ void Settings::set_steamVrLh(const bool & value)
|
||||
steamVrLhChanged();
|
||||
}
|
||||
|
||||
bool Settings::lhMaxExtrapolationEnabled() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("lh-max-extrapolation");
|
||||
return it != m_jsonSettings.end() and it->is_number();
|
||||
}
|
||||
|
||||
int64_t Settings::lhMaxExtrapolation() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("lh-max-extrapolation");
|
||||
if (it != m_jsonSettings.end() and it->is_number())
|
||||
return static_cast<int64_t>(*it);
|
||||
return 50;
|
||||
}
|
||||
|
||||
void Settings::set_lhMaxExtrapolation(const int64_t & value)
|
||||
{
|
||||
auto old = lhMaxExtrapolation();
|
||||
if (value != -1)
|
||||
{
|
||||
m_jsonSettings["lh-max-extrapolation"] = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_jsonSettings.erase("lh-max-extrapolation");
|
||||
}
|
||||
|
||||
if (old != value)
|
||||
{
|
||||
lhMaxExtrapolationEnabledChanged();
|
||||
lhMaxExtrapolationChanged();
|
||||
}
|
||||
}
|
||||
|
||||
float Settings::lhStickDeadzone() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("lh-stick-deadzone");
|
||||
if (it != m_jsonSettings.end() and it->is_number())
|
||||
return static_cast<float>(*it);
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
void Settings::set_lhStickDeadzone(const float & value)
|
||||
{
|
||||
auto old = lhStickDeadzone();
|
||||
m_jsonSettings["lh-stick-deadzone"] = value;
|
||||
if (old != value)
|
||||
lhStickDeadzoneChanged();
|
||||
}
|
||||
|
||||
bool Settings::tcpOnly() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("tcp-only");
|
||||
@@ -539,6 +591,7 @@ void Settings::restore_defaults()
|
||||
m_jsonSettings.erase("hid-forwarding");
|
||||
m_jsonSettings.erase("debug-gui");
|
||||
m_jsonSettings.erase("use-steamvr-lh");
|
||||
m_jsonSettings.erase("lh-stick-deadzone");
|
||||
m_jsonSettings.erase("tcp-only");
|
||||
m_jsonSettings.erase("application");
|
||||
m_jsonSettings.erase("port");
|
||||
|
||||
@@ -76,6 +76,9 @@ public:
|
||||
Q_PROPERTY(bool hidForwarding READ hidForwarding WRITE set_hidForwarding NOTIFY hidForwardingChanged)
|
||||
Q_PROPERTY(bool debugGui READ debugGui WRITE set_debugGui NOTIFY debugGuiChanged)
|
||||
Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged)
|
||||
Q_PROPERTY(bool lhMaxExtrapolationEnabled READ lhMaxExtrapolationEnabled NOTIFY lhMaxExtrapolationEnabledChanged)
|
||||
Q_PROPERTY(int64_t lhMaxExtrapolation READ lhMaxExtrapolation WRITE set_lhMaxExtrapolation NOTIFY lhMaxExtrapolationChanged)
|
||||
Q_PROPERTY(float lhStickDeadzone READ lhStickDeadzone WRITE set_lhStickDeadzone NOTIFY lhStickDeadzoneChanged)
|
||||
|
||||
Q_PROPERTY(bool flatpak READ flatpak CONSTANT)
|
||||
Q_PROPERTY(int default_port READ default_port CONSTANT)
|
||||
@@ -91,6 +94,9 @@ public:
|
||||
SETTER_GETTER_NOTIFY(bool, hidForwarding)
|
||||
SETTER_GETTER_NOTIFY(bool, debugGui)
|
||||
SETTER_GETTER_NOTIFY(bool, steamVrLh)
|
||||
SETTER_GETTER_NOTIFY(bool, lhMaxExtrapolationEnabled)
|
||||
SETTER_GETTER_NOTIFY(int64_t, lhMaxExtrapolation)
|
||||
SETTER_GETTER_NOTIFY(float, lhStickDeadzone)
|
||||
SETTER_GETTER_NOTIFY(bool, tcpOnly)
|
||||
SETTER_GETTER_NOTIFY(int, port)
|
||||
SETTER_GETTER_NOTIFY(QString, hostname)
|
||||
|
||||
Vendored
+1
-1
@@ -29,7 +29,7 @@ Build-Depends:
|
||||
libsystemd-dev,
|
||||
libudev-dev,
|
||||
libva-dev,
|
||||
libvulkan-dev (>= 1.3.261),
|
||||
libvulkan-dev (>= 1.4.304),
|
||||
libwayland-dev,
|
||||
libx11-xcb-dev,
|
||||
libx264-dev,
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ See [Server](#server-pc) for the server compile options.
|
||||
# Client (headset)
|
||||
|
||||
#### Build dependencies
|
||||
As Arch package names: git pkgconf glslang cmake jdk17-openjdk librsvg cli11 ktx_software-git ([AUR](https://aur.archlinux.org/packages/ktx_software-git))
|
||||
As Arch package names: git pkgconf glslang cmake jdk17-openjdk librsvg cli11 ktx-software-bin ([AUR](https://aur.archlinux.org/packages/ktx-software-bin))
|
||||
|
||||
OpenSSL build dependencies are also needed, as described [here](https://github.com/openssl/openssl/blob/master/INSTALL.md#prerequisites), in particular perl 5.
|
||||
|
||||
|
||||
+17
-3
@@ -24,13 +24,13 @@ When a string it is used, it is equivalent to the `encoder` item of the object.
|
||||
WiVRn encodes each eye separately, and the alpha channel as one for both eyes. Each stream is processed independently, this may use resources more effectively and reduce latency.
|
||||
|
||||
### `encoder`
|
||||
Default value: `nvenc` if Nvidia GPU and compiled with nvenc, `vaapi` for all other GPU when compiled with ffmpeg, else `x264`.
|
||||
Default value: `vulkan` if supported, `nvenc` if Nvidia GPU and compiled with nvenc, `vaapi` for all other GPU when compiled with ffmpeg, else `x264`.
|
||||
|
||||
Identifier of the encoder, one of
|
||||
* `x264`: software encoding
|
||||
* `nvenc`: Nvidia hardware encoding
|
||||
* `vaapi`: AMD/Intel hardware encoding
|
||||
* `vulkan`: experimental, for any GPU that supports vulkan video encode
|
||||
* `vulkan`: for any GPU that supports vulkan video encode
|
||||
|
||||
### `codec`
|
||||
Default value: best supported by both headset and encoder of `av1`, `h264`, `h265`.
|
||||
@@ -155,10 +155,24 @@ Enables the Monado debug gui.
|
||||
## `use-steamvr-lh`
|
||||
Default value: `false`
|
||||
|
||||
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`
|
||||
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`.
|
||||
|
||||
Enables the driver to load SteamVR Lighthouse devices.
|
||||
|
||||
## `lh-max-extrapolation`
|
||||
Default value: unset
|
||||
|
||||
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`.
|
||||
|
||||
Maximum time in milliseconds that poses may be extrapolated ahead for SteamVR Lighthouse devices.
|
||||
|
||||
## `lh-stick-deadzone`
|
||||
Default value: `0`
|
||||
|
||||
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`
|
||||
|
||||
Applies a deadzone to joysticks on SteamVR controllers (e.g. Index).
|
||||
|
||||
## `port`
|
||||
Default value: `9757`
|
||||
|
||||
|
||||
+2
-3
@@ -254,8 +254,8 @@ adb logcat '*:F' | grep -A 50 wivrn
|
||||
|
||||
## Performance Profiling
|
||||
|
||||
WiVRn supports timing analysis via CSV dumps and detailed system-wide
|
||||
profiling with Perfetto. See [docs/profiling.md](profiling.md) for capturing
|
||||
WiVRn supports timing analysis and detailed system-wide profiling with Perfetto.
|
||||
See [docs/profiling.md](profiling.md) for capturing
|
||||
timing data, profiling the HMD client and server, and comparing the Vulkan,
|
||||
NVENC, and VAAPI encoder paths.
|
||||
|
||||
@@ -327,7 +327,6 @@ The log is located at `$XDG_STATE_HOME/xrizer/xrizer.txt`, or `$HOME/.local/stat
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `WIVRN_DUMP_VIDEO` | Path to dump video frames (e.g., `/tmp/video-dump`) |
|
||||
| `WIVRN_DUMP_TIMINGS` | Path to dump timing CSV (e.g., `/tmp/wivrn-timings.csv`) |
|
||||
| `WIVRN_LOGLEVEL` | Log level for the native client |
|
||||
| `WIVRN_AUTOCONNECT` | Auto-connect to the first discovered server |
|
||||
| `WIVRN_TRACING` | Enable WiVRn Perfetto tracing: `system` / `inprocess`. Requires `WIVRN_USE_PERFETTO=ON` at build time. See [docs/profiling.md](profiling.md). |
|
||||
|
||||
+1
-18
@@ -1,6 +1,6 @@
|
||||
# Profiling WiVRn
|
||||
|
||||
Performance analysis for WiVRn: per-frame timing CSV and [Perfetto](https://perfetto.dev/) tracing.
|
||||
Performance analysis for WiVRn: [Perfetto](https://perfetto.dev/) tracing.
|
||||
For general debugging see [docs/debugging.md](debugging.md).
|
||||
|
||||
## Quick start
|
||||
@@ -28,15 +28,6 @@ tools/perfetto/wivrn_capture.py # WiVRn-only; --full adds Monado + ftrace
|
||||
The Perfetto amalgamated SDK must be installed where CMake looks (`/usr/share/perfetto/sdk`, override
|
||||
with `-DPERFETTO_SDK_DIR=<dir>`); no automatic fetch.
|
||||
|
||||
## Timing analysis (CSV)
|
||||
|
||||
Per-frame timing without any Perfetto setup — same events as the `wivrn_feedback` track, one row each:
|
||||
```bash
|
||||
WIVRN_DUMP_TIMINGS=/tmp/wivrn-timings.csv wivrn-server
|
||||
```
|
||||
CSV and Perfetto are independent; set either, neither, or both. See
|
||||
[CSV ↔ Perfetto](#csv--perfetto-alignment).
|
||||
|
||||
## HMD profiling
|
||||
|
||||
```bash
|
||||
@@ -180,11 +171,3 @@ the emit (a literal is fine). Place the span at the operation's semantic start,
|
||||
| `encoder` | `wivrn_encoder` | WiVRn encoder |
|
||||
| `compositor` | `wivrn_compositor` | WiVRn compositor |
|
||||
| `network` | `wivrn_network` | WiVRn network |
|
||||
|
||||
## CSV ↔ Perfetto alignment
|
||||
|
||||
`WIVRN_DUMP_TIMINGS` (CSV) and the `wivrn_feedback` track read the **same** `dump_time` stream, clock
|
||||
(`CLOCK_MONOTONIC`), and event names (`wake_up`, `encode_begin`, `send_end`, `display`, …) — so
|
||||
`grep encode_begin` over the CSV and `name = "encode_begin"` in Perfetto select the same frames at
|
||||
the same timestamps. Perfetto additionally carries the CPU/GPU spans the CSV does not. Use the CSV
|
||||
for offline scripting, the trace for a visual timeline.
|
||||
|
||||
Vendored
+4
-3
@@ -1,6 +1,7 @@
|
||||
add_library(wivrn-external INTERFACE)
|
||||
target_include_directories(wivrn-external SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_library(imspinner OBJECT EXCLUDE_FROM_ALL imspinner/cimspinner.cpp)
|
||||
target_include_directories(imspinner SYSTEM PUBLIC imspinner)
|
||||
target_link_libraries(imspinner wivrn-imgui)
|
||||
# add_library(imspinner OBJECT EXCLUDE_FROM_ALL imspinner/cimspinner.cpp)
|
||||
add_library(imspinner INTERFACE)
|
||||
target_include_directories(imspinner SYSTEM INTERFACE imspinner)
|
||||
target_link_libraries(imspinner INTERFACE wivrn-imgui)
|
||||
|
||||
+46
-11
@@ -1,14 +1,17 @@
|
||||
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++
|
||||
// from https://github.com/FortAwesome/Font-Awesome/raw/6.x/metadata/icons.yml
|
||||
// for use with https://github.com/FortAwesome/Font-Awesome/blob/6.x/webfonts/fa-regular-400.ttf, https://github.com/FortAwesome/Font-Awesome/blob/6.x/webfonts/fa-solid-900.ttf
|
||||
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py
|
||||
// for C and C++
|
||||
// from codepoints https://github.com/FortAwesome/Font-Awesome/raw/7.x/metadata/icons.yml
|
||||
// for use with font https://github.com/FortAwesome/Font-Awesome/blob/7.x/webfonts/fa-regular-400.woff2 (You may need to convert the .woff2 files to .ttf depending upon your loader.), https://github.com/FortAwesome/Font-Awesome/blob/7.x/webfonts/fa-solid-900.woff2 (You may need to convert the .woff2 files to .ttf depending upon your loader.)
|
||||
|
||||
#pragma once
|
||||
|
||||
#define FONT_ICON_FILE_NAME_FAR "fa-regular-400.ttf"
|
||||
#define FONT_ICON_FILE_NAME_FAS "fa-solid-900.ttf"
|
||||
#define FONT_ICON_FILE_NAME_FAR "fa-regular-400.woff2"
|
||||
#define FONT_ICON_FILE_NAME_FAS "fa-solid-900.woff2"
|
||||
|
||||
#define ICON_MIN_FA 0xe005
|
||||
#define ICON_MAX_16_FA 0xf8ff
|
||||
#define ICON_MAX_FA 0xf8ff
|
||||
|
||||
#define ICON_FA_0 "0" // U+0030
|
||||
#define ICON_FA_1 "1" // U+0031
|
||||
#define ICON_FA_2 "2" // U+0032
|
||||
@@ -22,6 +25,7 @@
|
||||
#define ICON_FA_A "A" // U+0041
|
||||
#define ICON_FA_ADDRESS_BOOK "\xef\x8a\xb9" // U+f2b9
|
||||
#define ICON_FA_ADDRESS_CARD "\xef\x8a\xbb" // U+f2bb
|
||||
#define ICON_FA_ALARM_CLOCK "\xef\x8d\x8e" // U+f34e
|
||||
#define ICON_FA_ALIGN_CENTER "\xef\x80\xb7" // U+f037
|
||||
#define ICON_FA_ALIGN_JUSTIFY "\xef\x80\xb9" // U+f039
|
||||
#define ICON_FA_ALIGN_LEFT "\xef\x80\xb6" // U+f036
|
||||
@@ -41,7 +45,9 @@
|
||||
#define ICON_FA_ANGLES_UP "\xef\x84\x82" // U+f102
|
||||
#define ICON_FA_ANKH "\xef\x99\x84" // U+f644
|
||||
#define ICON_FA_APPLE_WHOLE "\xef\x97\x91" // U+f5d1
|
||||
#define ICON_FA_AQUARIUS "\xee\xa1\x85" // U+e845
|
||||
#define ICON_FA_ARCHWAY "\xef\x95\x97" // U+f557
|
||||
#define ICON_FA_ARIES "\xee\xa1\x86" // U+e846
|
||||
#define ICON_FA_ARROW_DOWN "\xef\x81\xa3" // U+f063
|
||||
#define ICON_FA_ARROW_DOWN_1_9 "\xef\x85\xa2" // U+f162
|
||||
#define ICON_FA_ARROW_DOWN_9_1 "\xef\xa2\x86" // U+f886
|
||||
@@ -215,6 +221,7 @@
|
||||
#define ICON_FA_BURGER "\xef\xa0\x85" // U+f805
|
||||
#define ICON_FA_BURST "\xee\x93\x9c" // U+e4dc
|
||||
#define ICON_FA_BUS "\xef\x88\x87" // U+f207
|
||||
#define ICON_FA_BUS_SIDE "\xee\xa0\x9d" // U+e81d
|
||||
#define ICON_FA_BUS_SIMPLE "\xef\x95\x9e" // U+f55e
|
||||
#define ICON_FA_BUSINESS_TIME "\xef\x99\x8a" // U+f64a
|
||||
#define ICON_FA_C "C" // U+0043
|
||||
@@ -233,8 +240,10 @@
|
||||
#define ICON_FA_CAMERA_RETRO "\xef\x82\x83" // U+f083
|
||||
#define ICON_FA_CAMERA_ROTATE "\xee\x83\x98" // U+e0d8
|
||||
#define ICON_FA_CAMPGROUND "\xef\x9a\xbb" // U+f6bb
|
||||
#define ICON_FA_CANCER "\xee\xa1\x87" // U+e847
|
||||
#define ICON_FA_CANDY_CANE "\xef\x9e\x86" // U+f786
|
||||
#define ICON_FA_CANNABIS "\xef\x95\x9f" // U+f55f
|
||||
#define ICON_FA_CAPRICORN "\xee\xa1\x88" // U+e848
|
||||
#define ICON_FA_CAPSULES "\xef\x91\xab" // U+f46b
|
||||
#define ICON_FA_CAR "\xef\x86\xb9" // U+f1b9
|
||||
#define ICON_FA_CAR_BATTERY "\xef\x97\x9f" // U+f5df
|
||||
@@ -267,6 +276,7 @@
|
||||
#define ICON_FA_CHART_AREA "\xef\x87\xbe" // U+f1fe
|
||||
#define ICON_FA_CHART_BAR "\xef\x82\x80" // U+f080
|
||||
#define ICON_FA_CHART_COLUMN "\xee\x83\xa3" // U+e0e3
|
||||
#define ICON_FA_CHART_DIAGRAM "\xee\x9a\x95" // U+e695
|
||||
#define ICON_FA_CHART_GANTT "\xee\x83\xa4" // U+e0e4
|
||||
#define ICON_FA_CHART_LINE "\xef\x88\x81" // U+f201
|
||||
#define ICON_FA_CHART_PIE "\xef\x88\x80" // U+f200
|
||||
@@ -335,6 +345,7 @@
|
||||
#define ICON_FA_CLOCK_ROTATE_LEFT "\xef\x87\x9a" // U+f1da
|
||||
#define ICON_FA_CLONE "\xef\x89\x8d" // U+f24d
|
||||
#define ICON_FA_CLOSED_CAPTIONING "\xef\x88\x8a" // U+f20a
|
||||
#define ICON_FA_CLOSED_CAPTIONING_SLASH "\xee\x84\xb5" // U+e135
|
||||
#define ICON_FA_CLOUD "\xef\x83\x82" // U+f0c2
|
||||
#define ICON_FA_CLOUD_ARROW_DOWN "\xef\x83\xad" // U+f0ed
|
||||
#define ICON_FA_CLOUD_ARROW_UP "\xef\x83\xae" // U+f0ee
|
||||
@@ -361,6 +372,7 @@
|
||||
#define ICON_FA_COMMENT_DOLLAR "\xef\x99\x91" // U+f651
|
||||
#define ICON_FA_COMMENT_DOTS "\xef\x92\xad" // U+f4ad
|
||||
#define ICON_FA_COMMENT_MEDICAL "\xef\x9f\xb5" // U+f7f5
|
||||
#define ICON_FA_COMMENT_NODES "\xee\x9a\x96" // U+e696
|
||||
#define ICON_FA_COMMENT_SLASH "\xef\x92\xb3" // U+f4b3
|
||||
#define ICON_FA_COMMENT_SMS "\xef\x9f\x8d" // U+f7cd
|
||||
#define ICON_FA_COMMENTS "\xef\x82\x86" // U+f086
|
||||
@@ -523,6 +535,8 @@
|
||||
#define ICON_FA_FILE_CSV "\xef\x9b\x9d" // U+f6dd
|
||||
#define ICON_FA_FILE_EXCEL "\xef\x87\x83" // U+f1c3
|
||||
#define ICON_FA_FILE_EXPORT "\xef\x95\xae" // U+f56e
|
||||
#define ICON_FA_FILE_FRAGMENT "\xee\x9a\x97" // U+e697
|
||||
#define ICON_FA_FILE_HALF_DASHED "\xee\x9a\x98" // U+e698
|
||||
#define ICON_FA_FILE_IMAGE "\xef\x87\x85" // U+f1c5
|
||||
#define ICON_FA_FILE_IMPORT "\xef\x95\xaf" // U+f56f
|
||||
#define ICON_FA_FILE_INVOICE "\xef\x95\xb0" // U+f570
|
||||
@@ -586,6 +600,7 @@
|
||||
#define ICON_FA_GEAR "\xef\x80\x93" // U+f013
|
||||
#define ICON_FA_GEARS "\xef\x82\x85" // U+f085
|
||||
#define ICON_FA_GEM "\xef\x8e\xa5" // U+f3a5
|
||||
#define ICON_FA_GEMINI "\xee\xa1\x89" // U+e849
|
||||
#define ICON_FA_GENDERLESS "\xef\x88\xad" // U+f22d
|
||||
#define ICON_FA_GHOST "\xef\x9b\xa2" // U+f6e2
|
||||
#define ICON_FA_GIFT "\xef\x81\xab" // U+f06b
|
||||
@@ -643,8 +658,6 @@
|
||||
#define ICON_FA_HANDS_PRAYING "\xef\x9a\x84" // U+f684
|
||||
#define ICON_FA_HANDSHAKE "\xef\x8a\xb5" // U+f2b5
|
||||
#define ICON_FA_HANDSHAKE_ANGLE "\xef\x93\x84" // U+f4c4
|
||||
#define ICON_FA_HANDSHAKE_SIMPLE "\xef\x93\x86" // U+f4c6
|
||||
#define ICON_FA_HANDSHAKE_SIMPLE_SLASH "\xee\x81\x9f" // U+e05f
|
||||
#define ICON_FA_HANDSHAKE_SLASH "\xee\x81\xa0" // U+e060
|
||||
#define ICON_FA_HANUKIAH "\xef\x9b\xa6" // U+f6e6
|
||||
#define ICON_FA_HARD_DRIVE "\xef\x82\xa0" // U+f0a0
|
||||
@@ -658,7 +671,6 @@
|
||||
#define ICON_FA_HEAD_SIDE_VIRUS "\xee\x81\xa4" // U+e064
|
||||
#define ICON_FA_HEADING "\xef\x87\x9c" // U+f1dc
|
||||
#define ICON_FA_HEADPHONES "\xef\x80\xa5" // U+f025
|
||||
#define ICON_FA_HEADPHONES_SIMPLE "\xef\x96\x8f" // U+f58f
|
||||
#define ICON_FA_HEADSET "\xef\x96\x90" // U+f590
|
||||
#define ICON_FA_HEART "\xef\x80\x84" // U+f004
|
||||
#define ICON_FA_HEART_CIRCLE_BOLT "\xee\x93\xbc" // U+e4fc
|
||||
@@ -673,6 +685,9 @@
|
||||
#define ICON_FA_HELICOPTER_SYMBOL "\xee\x94\x82" // U+e502
|
||||
#define ICON_FA_HELMET_SAFETY "\xef\xa0\x87" // U+f807
|
||||
#define ICON_FA_HELMET_UN "\xee\x94\x83" // U+e503
|
||||
#define ICON_FA_HEXAGON "\xef\x8c\x92" // U+f312
|
||||
#define ICON_FA_HEXAGON_NODES "\xee\x9a\x99" // U+e699
|
||||
#define ICON_FA_HEXAGON_NODES_BOLT "\xee\x9a\x9a" // U+e69a
|
||||
#define ICON_FA_HIGHLIGHTER "\xef\x96\x91" // U+f591
|
||||
#define ICON_FA_HILL_AVALANCHE "\xee\x94\x87" // U+e507
|
||||
#define ICON_FA_HILL_ROCKSLIDE "\xee\x94\x88" // U+e508
|
||||
@@ -768,8 +783,10 @@
|
||||
#define ICON_FA_LEFT_LONG "\xef\x8c\x8a" // U+f30a
|
||||
#define ICON_FA_LEFT_RIGHT "\xef\x8c\xb7" // U+f337
|
||||
#define ICON_FA_LEMON "\xef\x82\x94" // U+f094
|
||||
#define ICON_FA_LEO "\xee\xa1\x8a" // U+e84a
|
||||
#define ICON_FA_LESS_THAN "<" // U+003c
|
||||
#define ICON_FA_LESS_THAN_EQUAL "\xef\x94\xb7" // U+f537
|
||||
#define ICON_FA_LIBRA "\xee\xa1\x8b" // U+e84b
|
||||
#define ICON_FA_LIFE_RING "\xef\x87\x8d" // U+f1cd
|
||||
#define ICON_FA_LIGHTBULB "\xef\x83\xab" // U+f0eb
|
||||
#define ICON_FA_LINES_LEANING "\xee\x94\x9e" // U+e51e
|
||||
@@ -843,6 +860,7 @@
|
||||
#define ICON_FA_MOBILE_RETRO "\xee\x94\xa7" // U+e527
|
||||
#define ICON_FA_MOBILE_SCREEN "\xef\x8f\x8f" // U+f3cf
|
||||
#define ICON_FA_MOBILE_SCREEN_BUTTON "\xef\x8f\x8d" // U+f3cd
|
||||
#define ICON_FA_MOBILE_VIBRATE "\xee\xa0\x96" // U+e816
|
||||
#define ICON_FA_MONEY_BILL "\xef\x83\x96" // U+f0d6
|
||||
#define ICON_FA_MONEY_BILL_1 "\xef\x8f\x91" // U+f3d1
|
||||
#define ICON_FA_MONEY_BILL_1_WAVE "\xef\x94\xbb" // U+f53b
|
||||
@@ -872,6 +890,7 @@
|
||||
#define ICON_FA_NETWORK_WIRED "\xef\x9b\xbf" // U+f6ff
|
||||
#define ICON_FA_NEUTER "\xef\x88\xac" // U+f22c
|
||||
#define ICON_FA_NEWSPAPER "\xef\x87\xaa" // U+f1ea
|
||||
#define ICON_FA_NON_BINARY "\xee\xa0\x87" // U+e807
|
||||
#define ICON_FA_NOT_EQUAL "\xef\x94\xbe" // U+f53e
|
||||
#define ICON_FA_NOTDEF "\xee\x87\xbe" // U+e1fe
|
||||
#define ICON_FA_NOTE_STICKY "\xef\x89\x89" // U+f249
|
||||
@@ -879,6 +898,7 @@
|
||||
#define ICON_FA_O "O" // U+004f
|
||||
#define ICON_FA_OBJECT_GROUP "\xef\x89\x87" // U+f247
|
||||
#define ICON_FA_OBJECT_UNGROUP "\xef\x89\x88" // U+f248
|
||||
#define ICON_FA_OCTAGON "\xef\x8c\x86" // U+f306
|
||||
#define ICON_FA_OIL_CAN "\xef\x98\x93" // U+f613
|
||||
#define ICON_FA_OIL_WELL "\xee\x94\xb2" // U+e532
|
||||
#define ICON_FA_OM "\xef\x99\xb9" // U+f679
|
||||
@@ -907,6 +927,7 @@
|
||||
#define ICON_FA_PEN_RULER "\xef\x96\xae" // U+f5ae
|
||||
#define ICON_FA_PEN_TO_SQUARE "\xef\x81\x84" // U+f044
|
||||
#define ICON_FA_PENCIL "\xef\x8c\x83" // U+f303
|
||||
#define ICON_FA_PENTAGON "\xee\x9e\x90" // U+e790
|
||||
#define ICON_FA_PEOPLE_ARROWS "\xee\x81\xa8" // U+e068
|
||||
#define ICON_FA_PEOPLE_CARRY_BOX "\xef\x93\x8e" // U+f4ce
|
||||
#define ICON_FA_PEOPLE_GROUP "\xee\x94\xb3" // U+e533
|
||||
@@ -969,8 +990,10 @@
|
||||
#define ICON_FA_PHONE_SLASH "\xef\x8f\x9d" // U+f3dd
|
||||
#define ICON_FA_PHONE_VOLUME "\xef\x8a\xa0" // U+f2a0
|
||||
#define ICON_FA_PHOTO_FILM "\xef\xa1\xbc" // U+f87c
|
||||
#define ICON_FA_PICTURE_IN_PICTURE "\xee\xa0\x8b" // U+e80b
|
||||
#define ICON_FA_PIGGY_BANK "\xef\x93\x93" // U+f4d3
|
||||
#define ICON_FA_PILLS "\xef\x92\x84" // U+f484
|
||||
#define ICON_FA_PISCES "\xee\xa1\x8c" // U+e84c
|
||||
#define ICON_FA_PIZZA_SLICE "\xef\xa0\x98" // U+f818
|
||||
#define ICON_FA_PLACE_OF_WORSHIP "\xef\x99\xbf" // U+f67f
|
||||
#define ICON_FA_PLANE "\xef\x81\xb2" // U+f072
|
||||
@@ -1061,6 +1084,7 @@
|
||||
#define ICON_FA_S "S" // U+0053
|
||||
#define ICON_FA_SACK_DOLLAR "\xef\xa0\x9d" // U+f81d
|
||||
#define ICON_FA_SACK_XMARK "\xee\x95\xaa" // U+e56a
|
||||
#define ICON_FA_SAGITTARIUS "\xee\xa1\x8d" // U+e84d
|
||||
#define ICON_FA_SAILBOAT "\xee\x91\x85" // U+e445
|
||||
#define ICON_FA_SATELLITE "\xef\x9e\xbf" // U+f7bf
|
||||
#define ICON_FA_SATELLITE_DISH "\xef\x9f\x80" // U+f7c0
|
||||
@@ -1074,6 +1098,7 @@
|
||||
#define ICON_FA_SCHOOL_FLAG "\xee\x95\xae" // U+e56e
|
||||
#define ICON_FA_SCHOOL_LOCK "\xee\x95\xaf" // U+e56f
|
||||
#define ICON_FA_SCISSORS "\xef\x83\x84" // U+f0c4
|
||||
#define ICON_FA_SCORPIO "\xee\xa1\x8e" // U+e84e
|
||||
#define ICON_FA_SCREWDRIVER "\xef\x95\x8a" // U+f54a
|
||||
#define ICON_FA_SCREWDRIVER_WRENCH "\xef\x9f\x99" // U+f7d9
|
||||
#define ICON_FA_SCROLL "\xef\x9c\x8e" // U+f70e
|
||||
@@ -1081,6 +1106,7 @@
|
||||
#define ICON_FA_SD_CARD "\xef\x9f\x82" // U+f7c2
|
||||
#define ICON_FA_SECTION "\xee\x91\x87" // U+e447
|
||||
#define ICON_FA_SEEDLING "\xef\x93\x98" // U+f4d8
|
||||
#define ICON_FA_SEPTAGON "\xee\xa0\xa0" // U+e820
|
||||
#define ICON_FA_SERVER "\xef\x88\xb3" // U+f233
|
||||
#define ICON_FA_SHAPES "\xef\x98\x9f" // U+f61f
|
||||
#define ICON_FA_SHARE "\xef\x81\xa4" // U+f064
|
||||
@@ -1109,6 +1135,8 @@
|
||||
#define ICON_FA_SIGNATURE "\xef\x96\xb7" // U+f5b7
|
||||
#define ICON_FA_SIGNS_POST "\xef\x89\xb7" // U+f277
|
||||
#define ICON_FA_SIM_CARD "\xef\x9f\x84" // U+f7c4
|
||||
#define ICON_FA_SINGLE_QUOTE_LEFT "\xee\xa0\x9b" // U+e81b
|
||||
#define ICON_FA_SINGLE_QUOTE_RIGHT "\xee\xa0\x9c" // U+e81c
|
||||
#define ICON_FA_SINK "\xee\x81\xad" // U+e06d
|
||||
#define ICON_FA_SITEMAP "\xef\x83\xa8" // U+f0e8
|
||||
#define ICON_FA_SKULL "\xef\x95\x8c" // U+f54c
|
||||
@@ -1132,12 +1160,14 @@
|
||||
#define ICON_FA_SPELL_CHECK "\xef\xa2\x91" // U+f891
|
||||
#define ICON_FA_SPIDER "\xef\x9c\x97" // U+f717
|
||||
#define ICON_FA_SPINNER "\xef\x84\x90" // U+f110
|
||||
#define ICON_FA_SPIRAL "\xee\xa0\x8a" // U+e80a
|
||||
#define ICON_FA_SPLOTCH "\xef\x96\xbc" // U+f5bc
|
||||
#define ICON_FA_SPOON "\xef\x8b\xa5" // U+f2e5
|
||||
#define ICON_FA_SPRAY_CAN "\xef\x96\xbd" // U+f5bd
|
||||
#define ICON_FA_SPRAY_CAN_SPARKLES "\xef\x97\x90" // U+f5d0
|
||||
#define ICON_FA_SQUARE "\xef\x83\x88" // U+f0c8
|
||||
#define ICON_FA_SQUARE_ARROW_UP_RIGHT "\xef\x85\x8c" // U+f14c
|
||||
#define ICON_FA_SQUARE_BINARY "\xee\x9a\x9b" // U+e69b
|
||||
#define ICON_FA_SQUARE_CARET_DOWN "\xef\x85\x90" // U+f150
|
||||
#define ICON_FA_SQUARE_CARET_LEFT "\xef\x86\x91" // U+f191
|
||||
#define ICON_FA_SQUARE_CARET_RIGHT "\xef\x85\x92" // U+f152
|
||||
@@ -1195,7 +1225,10 @@
|
||||
#define ICON_FA_T "T" // U+0054
|
||||
#define ICON_FA_TABLE "\xef\x83\x8e" // U+f0ce
|
||||
#define ICON_FA_TABLE_CELLS "\xef\x80\x8a" // U+f00a
|
||||
#define ICON_FA_TABLE_CELLS_COLUMN_LOCK "\xee\x99\xb8" // U+e678
|
||||
#define ICON_FA_TABLE_CELLS_LARGE "\xef\x80\x89" // U+f009
|
||||
#define ICON_FA_TABLE_CELLS_ROW_LOCK "\xee\x99\xba" // U+e67a
|
||||
#define ICON_FA_TABLE_CELLS_ROW_UNLOCK "\xee\x9a\x91" // U+e691
|
||||
#define ICON_FA_TABLE_COLUMNS "\xef\x83\x9b" // U+f0db
|
||||
#define ICON_FA_TABLE_LIST "\xef\x80\x8b" // U+f00b
|
||||
#define ICON_FA_TABLE_TENNIS_PADDLE_BALL "\xef\x91\x9d" // U+f45d
|
||||
@@ -1209,6 +1242,7 @@
|
||||
#define ICON_FA_TAPE "\xef\x93\x9b" // U+f4db
|
||||
#define ICON_FA_TARP "\xee\x95\xbb" // U+e57b
|
||||
#define ICON_FA_TARP_DROPLET "\xee\x95\xbc" // U+e57c
|
||||
#define ICON_FA_TAURUS "\xee\xa1\x8f" // U+e84f
|
||||
#define ICON_FA_TAXI "\xef\x86\xba" // U+f1ba
|
||||
#define ICON_FA_TEETH "\xef\x98\xae" // U+f62e
|
||||
#define ICON_FA_TEETH_OPEN "\xef\x98\xaf" // U+f62f
|
||||
@@ -1236,6 +1270,7 @@
|
||||
#define ICON_FA_THUMBS_DOWN "\xef\x85\xa5" // U+f165
|
||||
#define ICON_FA_THUMBS_UP "\xef\x85\xa4" // U+f164
|
||||
#define ICON_FA_THUMBTACK "\xef\x82\x8d" // U+f08d
|
||||
#define ICON_FA_THUMBTACK_SLASH "\xee\x9a\x8f" // U+e68f
|
||||
#define ICON_FA_TICKET "\xef\x85\x85" // U+f145
|
||||
#define ICON_FA_TICKET_SIMPLE "\xef\x8f\xbf" // U+f3ff
|
||||
#define ICON_FA_TIMELINE "\xee\x8a\x9c" // U+e29c
|
||||
@@ -1311,8 +1346,6 @@
|
||||
#define ICON_FA_USER_GRADUATE "\xef\x94\x81" // U+f501
|
||||
#define ICON_FA_USER_GROUP "\xef\x94\x80" // U+f500
|
||||
#define ICON_FA_USER_INJURED "\xef\x9c\xa8" // U+f728
|
||||
#define ICON_FA_USER_LARGE "\xef\x90\x86" // U+f406
|
||||
#define ICON_FA_USER_LARGE_SLASH "\xef\x93\xba" // U+f4fa
|
||||
#define ICON_FA_USER_LOCK "\xef\x94\x82" // U+f502
|
||||
#define ICON_FA_USER_MINUS "\xef\x94\x83" // U+f503
|
||||
#define ICON_FA_USER_NINJA "\xef\x94\x84" // U+f504
|
||||
@@ -1337,7 +1370,6 @@
|
||||
#define ICON_FA_V "V" // U+0056
|
||||
#define ICON_FA_VAN_SHUTTLE "\xef\x96\xb6" // U+f5b6
|
||||
#define ICON_FA_VAULT "\xee\x8b\x85" // U+e2c5
|
||||
#define ICON_FA_VECTOR_SQUARE "\xef\x97\x8b" // U+f5cb
|
||||
#define ICON_FA_VENUS "\xef\x88\xa1" // U+f221
|
||||
#define ICON_FA_VENUS_DOUBLE "\xef\x88\xa6" // U+f226
|
||||
#define ICON_FA_VENUS_MARS "\xef\x88\xa8" // U+f228
|
||||
@@ -1350,6 +1382,7 @@
|
||||
#define ICON_FA_VIDEO "\xef\x80\xbd" // U+f03d
|
||||
#define ICON_FA_VIDEO_SLASH "\xef\x93\xa2" // U+f4e2
|
||||
#define ICON_FA_VIHARA "\xef\x9a\xa7" // U+f6a7
|
||||
#define ICON_FA_VIRGO "\xee\xa1\x90" // U+e850
|
||||
#define ICON_FA_VIRUS "\xee\x81\xb4" // U+e074
|
||||
#define ICON_FA_VIRUS_COVID "\xee\x92\xa8" // U+e4a8
|
||||
#define ICON_FA_VIRUS_COVID_SLASH "\xee\x92\xa9" // U+e4a9
|
||||
@@ -1358,6 +1391,7 @@
|
||||
#define ICON_FA_VOICEMAIL "\xef\xa2\x97" // U+f897
|
||||
#define ICON_FA_VOLCANO "\xef\x9d\xb0" // U+f770
|
||||
#define ICON_FA_VOLLEYBALL "\xef\x91\x9f" // U+f45f
|
||||
#define ICON_FA_VOLUME "\xef\x9a\xa8" // U+f6a8
|
||||
#define ICON_FA_VOLUME_HIGH "\xef\x80\xa8" // U+f028
|
||||
#define ICON_FA_VOLUME_LOW "\xef\x80\xa7" // U+f027
|
||||
#define ICON_FA_VOLUME_OFF "\xef\x80\xa6" // U+f026
|
||||
@@ -1373,6 +1407,7 @@
|
||||
#define ICON_FA_WATER "\xef\x9d\xb3" // U+f773
|
||||
#define ICON_FA_WATER_LADDER "\xef\x97\x85" // U+f5c5
|
||||
#define ICON_FA_WAVE_SQUARE "\xef\xa0\xbe" // U+f83e
|
||||
#define ICON_FA_WEB_AWESOME "\xee\x9a\x82" // U+e682
|
||||
#define ICON_FA_WEIGHT_HANGING "\xef\x97\x8d" // U+f5cd
|
||||
#define ICON_FA_WEIGHT_SCALE "\xef\x92\x96" // U+f496
|
||||
#define ICON_FA_WHEAT_AWN "\xee\x8b\x8d" // U+e2cd
|
||||
Vendored
+563
@@ -0,0 +1,563 @@
|
||||
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py
|
||||
// for C and C++
|
||||
// from codepoints https://github.com/FortAwesome/Font-Awesome/raw/7.x/metadata/icons.yml
|
||||
// for use with font https://github.com/FortAwesome/Font-Awesome/blob/7.x/webfonts/fa-brands-400.woff2 (You may need to convert the .woff2 files to .ttf depending upon your loader.)
|
||||
|
||||
#pragma once
|
||||
|
||||
#define FONT_ICON_FILE_NAME_FAB "fa-brands-400.woff2"
|
||||
|
||||
#define ICON_MIN_FAB 0xe007
|
||||
#define ICON_MAX_16_FAB 0xf8e8
|
||||
#define ICON_MAX_FAB 0xf8e8
|
||||
|
||||
#define ICON_FA_42_GROUP "\xee\x82\x80" // U+e080
|
||||
#define ICON_FA_500PX "\xef\x89\xae" // U+f26e
|
||||
#define ICON_FA_ACCESSIBLE_ICON "\xef\x8d\xa8" // U+f368
|
||||
#define ICON_FA_ACCUSOFT "\xef\x8d\xa9" // U+f369
|
||||
#define ICON_FA_ADN "\xef\x85\xb0" // U+f170
|
||||
#define ICON_FA_ADVERSAL "\xef\x8d\xaa" // U+f36a
|
||||
#define ICON_FA_AFFILIATETHEME "\xef\x8d\xab" // U+f36b
|
||||
#define ICON_FA_AIRBNB "\xef\xa0\xb4" // U+f834
|
||||
#define ICON_FA_ALGOLIA "\xef\x8d\xac" // U+f36c
|
||||
#define ICON_FA_ALIPAY "\xef\x99\x82" // U+f642
|
||||
#define ICON_FA_AMAZON "\xef\x89\xb0" // U+f270
|
||||
#define ICON_FA_AMAZON_PAY "\xef\x90\xac" // U+f42c
|
||||
#define ICON_FA_AMILIA "\xef\x8d\xad" // U+f36d
|
||||
#define ICON_FA_ANDROID "\xef\x85\xbb" // U+f17b
|
||||
#define ICON_FA_ANGELLIST "\xef\x88\x89" // U+f209
|
||||
#define ICON_FA_ANGRYCREATIVE "\xef\x8d\xae" // U+f36e
|
||||
#define ICON_FA_ANGULAR "\xef\x90\xa0" // U+f420
|
||||
#define ICON_FA_APP_STORE "\xef\x8d\xaf" // U+f36f
|
||||
#define ICON_FA_APP_STORE_IOS "\xef\x8d\xb0" // U+f370
|
||||
#define ICON_FA_APPER "\xef\x8d\xb1" // U+f371
|
||||
#define ICON_FA_APPLE "\xef\x85\xb9" // U+f179
|
||||
#define ICON_FA_APPLE_PAY "\xef\x90\x95" // U+f415
|
||||
#define ICON_FA_ARCH_LINUX "\xee\xa1\xa7" // U+e867
|
||||
#define ICON_FA_ARTSTATION "\xef\x9d\xba" // U+f77a
|
||||
#define ICON_FA_ASYMMETRIK "\xef\x8d\xb2" // U+f372
|
||||
#define ICON_FA_ATLASSIAN "\xef\x9d\xbb" // U+f77b
|
||||
#define ICON_FA_AUDIBLE "\xef\x8d\xb3" // U+f373
|
||||
#define ICON_FA_AUTOPREFIXER "\xef\x90\x9c" // U+f41c
|
||||
#define ICON_FA_AVIANEX "\xef\x8d\xb4" // U+f374
|
||||
#define ICON_FA_AVIATO "\xef\x90\xa1" // U+f421
|
||||
#define ICON_FA_AWS "\xef\x8d\xb5" // U+f375
|
||||
#define ICON_FA_BANDCAMP "\xef\x8b\x95" // U+f2d5
|
||||
#define ICON_FA_BATTLE_NET "\xef\xa0\xb5" // U+f835
|
||||
#define ICON_FA_BEHANCE "\xef\x86\xb4" // U+f1b4
|
||||
#define ICON_FA_BILIBILI "\xee\x8f\x99" // U+e3d9
|
||||
#define ICON_FA_BIMOBJECT "\xef\x8d\xb8" // U+f378
|
||||
#define ICON_FA_BITBUCKET "\xef\x85\xb1" // U+f171
|
||||
#define ICON_FA_BITCOIN "\xef\x8d\xb9" // U+f379
|
||||
#define ICON_FA_BITY "\xef\x8d\xba" // U+f37a
|
||||
#define ICON_FA_BLACK_TIE "\xef\x89\xbe" // U+f27e
|
||||
#define ICON_FA_BLACKBERRY "\xef\x8d\xbb" // U+f37b
|
||||
#define ICON_FA_BLOGGER "\xef\x8d\xbc" // U+f37c
|
||||
#define ICON_FA_BLOGGER_B "\xef\x8d\xbd" // U+f37d
|
||||
#define ICON_FA_BLUESKY "\xee\x99\xb1" // U+e671
|
||||
#define ICON_FA_BLUETOOTH "\xef\x8a\x93" // U+f293
|
||||
#define ICON_FA_BLUETOOTH_B "\xef\x8a\x94" // U+f294
|
||||
#define ICON_FA_BOARD_GAME_GEEK "\xee\xa1\x95" // U+e855
|
||||
#define ICON_FA_BOOTSTRAP "\xef\xa0\xb6" // U+f836
|
||||
#define ICON_FA_BOTS "\xee\x8d\x80" // U+e340
|
||||
#define ICON_FA_BRAVE "\xee\x98\xbc" // U+e63c
|
||||
#define ICON_FA_BRAVE_REVERSE "\xee\x98\xbd" // U+e63d
|
||||
#define ICON_FA_BTC "\xef\x85\x9a" // U+f15a
|
||||
#define ICON_FA_BUFFER "\xef\xa0\xb7" // U+f837
|
||||
#define ICON_FA_BUROMOBELEXPERTE "\xef\x8d\xbf" // U+f37f
|
||||
#define ICON_FA_BUY_N_LARGE "\xef\xa2\xa6" // U+f8a6
|
||||
#define ICON_FA_BUYSELLADS "\xef\x88\x8d" // U+f20d
|
||||
#define ICON_FA_CANADIAN_MAPLE_LEAF "\xef\x9e\x85" // U+f785
|
||||
#define ICON_FA_CASH_APP "\xee\x9f\x94" // U+e7d4
|
||||
#define ICON_FA_CC_AMAZON_PAY "\xef\x90\xad" // U+f42d
|
||||
#define ICON_FA_CC_AMEX "\xef\x87\xb3" // U+f1f3
|
||||
#define ICON_FA_CC_APPLE_PAY "\xef\x90\x96" // U+f416
|
||||
#define ICON_FA_CC_DINERS_CLUB "\xef\x89\x8c" // U+f24c
|
||||
#define ICON_FA_CC_DISCOVER "\xef\x87\xb2" // U+f1f2
|
||||
#define ICON_FA_CC_JCB "\xef\x89\x8b" // U+f24b
|
||||
#define ICON_FA_CC_MASTERCARD "\xef\x87\xb1" // U+f1f1
|
||||
#define ICON_FA_CC_PAYPAL "\xef\x87\xb4" // U+f1f4
|
||||
#define ICON_FA_CC_STRIPE "\xef\x87\xb5" // U+f1f5
|
||||
#define ICON_FA_CC_VISA "\xef\x87\xb0" // U+f1f0
|
||||
#define ICON_FA_CENTERCODE "\xef\x8e\x80" // U+f380
|
||||
#define ICON_FA_CENTOS "\xef\x9e\x89" // U+f789
|
||||
#define ICON_FA_CHROME "\xef\x89\xa8" // U+f268
|
||||
#define ICON_FA_CHROMECAST "\xef\xa0\xb8" // U+f838
|
||||
#define ICON_FA_CIRCLE_ZULIP "\xee\xa1\x91" // U+e851
|
||||
#define ICON_FA_CLAUDE "\xee\xa1\xa1" // U+e861
|
||||
#define ICON_FA_CLOUDFLARE "\xee\x81\xbd" // U+e07d
|
||||
#define ICON_FA_CLOUDSCALE "\xef\x8e\x83" // U+f383
|
||||
#define ICON_FA_CLOUDSMITH "\xef\x8e\x84" // U+f384
|
||||
#define ICON_FA_CLOUDVERSIFY "\xef\x8e\x85" // U+f385
|
||||
#define ICON_FA_CMPLID "\xee\x8d\xa0" // U+e360
|
||||
#define ICON_FA_CODEPEN "\xef\x87\x8b" // U+f1cb
|
||||
#define ICON_FA_CODIEPIE "\xef\x8a\x84" // U+f284
|
||||
#define ICON_FA_CONFLUENCE "\xef\x9e\x8d" // U+f78d
|
||||
#define ICON_FA_CONNECTDEVELOP "\xef\x88\x8e" // U+f20e
|
||||
#define ICON_FA_CONTAO "\xef\x89\xad" // U+f26d
|
||||
#define ICON_FA_COTTON_BUREAU "\xef\xa2\x9e" // U+f89e
|
||||
#define ICON_FA_CPANEL "\xef\x8e\x88" // U+f388
|
||||
#define ICON_FA_CREATIVE_COMMONS "\xef\x89\x9e" // U+f25e
|
||||
#define ICON_FA_CREATIVE_COMMONS_BY "\xef\x93\xa7" // U+f4e7
|
||||
#define ICON_FA_CREATIVE_COMMONS_NC "\xef\x93\xa8" // U+f4e8
|
||||
#define ICON_FA_CREATIVE_COMMONS_NC_EU "\xef\x93\xa9" // U+f4e9
|
||||
#define ICON_FA_CREATIVE_COMMONS_NC_JP "\xef\x93\xaa" // U+f4ea
|
||||
#define ICON_FA_CREATIVE_COMMONS_ND "\xef\x93\xab" // U+f4eb
|
||||
#define ICON_FA_CREATIVE_COMMONS_PD "\xef\x93\xac" // U+f4ec
|
||||
#define ICON_FA_CREATIVE_COMMONS_PD_ALT "\xef\x93\xad" // U+f4ed
|
||||
#define ICON_FA_CREATIVE_COMMONS_REMIX "\xef\x93\xae" // U+f4ee
|
||||
#define ICON_FA_CREATIVE_COMMONS_SA "\xef\x93\xaf" // U+f4ef
|
||||
#define ICON_FA_CREATIVE_COMMONS_SAMPLING "\xef\x93\xb0" // U+f4f0
|
||||
#define ICON_FA_CREATIVE_COMMONS_SAMPLING_PLUS "\xef\x93\xb1" // U+f4f1
|
||||
#define ICON_FA_CREATIVE_COMMONS_SHARE "\xef\x93\xb2" // U+f4f2
|
||||
#define ICON_FA_CREATIVE_COMMONS_ZERO "\xef\x93\xb3" // U+f4f3
|
||||
#define ICON_FA_CRITICAL_ROLE "\xef\x9b\x89" // U+f6c9
|
||||
#define ICON_FA_CSS "\xee\x9a\xa2" // U+e6a2
|
||||
#define ICON_FA_CSS3 "\xef\x84\xbc" // U+f13c
|
||||
#define ICON_FA_CSS3_ALT "\xef\x8e\x8b" // U+f38b
|
||||
#define ICON_FA_CUTTLEFISH "\xef\x8e\x8c" // U+f38c
|
||||
#define ICON_FA_D_AND_D "\xef\x8e\x8d" // U+f38d
|
||||
#define ICON_FA_D_AND_D_BEYOND "\xef\x9b\x8a" // U+f6ca
|
||||
#define ICON_FA_DAILYMOTION "\xee\x81\x92" // U+e052
|
||||
#define ICON_FA_DART_LANG "\xee\x9a\x93" // U+e693
|
||||
#define ICON_FA_DASHCUBE "\xef\x88\x90" // U+f210
|
||||
#define ICON_FA_DEBIAN "\xee\x98\x8b" // U+e60b
|
||||
#define ICON_FA_DEEZER "\xee\x81\xb7" // U+e077
|
||||
#define ICON_FA_DELICIOUS "\xef\x86\xa5" // U+f1a5
|
||||
#define ICON_FA_DEPLOYDOG "\xef\x8e\x8e" // U+f38e
|
||||
#define ICON_FA_DESKPRO "\xef\x8e\x8f" // U+f38f
|
||||
#define ICON_FA_DEV "\xef\x9b\x8c" // U+f6cc
|
||||
#define ICON_FA_DEVIANTART "\xef\x86\xbd" // U+f1bd
|
||||
#define ICON_FA_DHL "\xef\x9e\x90" // U+f790
|
||||
#define ICON_FA_DIASPORA "\xef\x9e\x91" // U+f791
|
||||
#define ICON_FA_DIGG "\xef\x86\xa6" // U+f1a6
|
||||
#define ICON_FA_DIGITAL_OCEAN "\xef\x8e\x91" // U+f391
|
||||
#define ICON_FA_DISCORD "\xef\x8e\x92" // U+f392
|
||||
#define ICON_FA_DISCOURSE "\xef\x8e\x93" // U+f393
|
||||
#define ICON_FA_DISQUS "\xee\x9f\x95" // U+e7d5
|
||||
#define ICON_FA_DOCHUB "\xef\x8e\x94" // U+f394
|
||||
#define ICON_FA_DOCKER "\xef\x8e\x95" // U+f395
|
||||
#define ICON_FA_DRAFT2DIGITAL "\xef\x8e\x96" // U+f396
|
||||
#define ICON_FA_DRIBBBLE "\xef\x85\xbd" // U+f17d
|
||||
#define ICON_FA_DROPBOX "\xef\x85\xab" // U+f16b
|
||||
#define ICON_FA_DRUPAL "\xef\x86\xa9" // U+f1a9
|
||||
#define ICON_FA_DUOLINGO "\xee\xa0\x92" // U+e812
|
||||
#define ICON_FA_DYALOG "\xef\x8e\x99" // U+f399
|
||||
#define ICON_FA_EARLYBIRDS "\xef\x8e\x9a" // U+f39a
|
||||
#define ICON_FA_EBAY "\xef\x93\xb4" // U+f4f4
|
||||
#define ICON_FA_EDGE "\xef\x8a\x82" // U+f282
|
||||
#define ICON_FA_EDGE_LEGACY "\xee\x81\xb8" // U+e078
|
||||
#define ICON_FA_ELEMENTOR "\xef\x90\xb0" // U+f430
|
||||
#define ICON_FA_ELEVENTY "\xee\x9f\x96" // U+e7d6
|
||||
#define ICON_FA_ELLO "\xef\x97\xb1" // U+f5f1
|
||||
#define ICON_FA_EMBER "\xef\x90\xa3" // U+f423
|
||||
#define ICON_FA_EMPIRE "\xef\x87\x91" // U+f1d1
|
||||
#define ICON_FA_ENVIRA "\xef\x8a\x99" // U+f299
|
||||
#define ICON_FA_ERLANG "\xef\x8e\x9d" // U+f39d
|
||||
#define ICON_FA_ETHEREUM "\xef\x90\xae" // U+f42e
|
||||
#define ICON_FA_ETSY "\xef\x8b\x97" // U+f2d7
|
||||
#define ICON_FA_EVERNOTE "\xef\xa0\xb9" // U+f839
|
||||
#define ICON_FA_EXPEDITEDSSL "\xef\x88\xbe" // U+f23e
|
||||
#define ICON_FA_FACEBOOK "\xef\x82\x9a" // U+f09a
|
||||
#define ICON_FA_FACEBOOK_F "\xef\x8e\x9e" // U+f39e
|
||||
#define ICON_FA_FACEBOOK_MESSENGER "\xef\x8e\x9f" // U+f39f
|
||||
#define ICON_FA_FANTASY_FLIGHT_GAMES "\xef\x9b\x9c" // U+f6dc
|
||||
#define ICON_FA_FEDEX "\xef\x9e\x97" // U+f797
|
||||
#define ICON_FA_FEDIVERSE "\xee\xa1\xa5" // U+e865
|
||||
#define ICON_FA_FEDORA "\xef\x9e\x98" // U+f798
|
||||
#define ICON_FA_FIGMA "\xef\x9e\x99" // U+f799
|
||||
#define ICON_FA_FILES_PINWHEEL "\xee\x9a\x9f" // U+e69f
|
||||
#define ICON_FA_FIREFOX "\xef\x89\xa9" // U+f269
|
||||
#define ICON_FA_FIREFOX_BROWSER "\xee\x80\x87" // U+e007
|
||||
#define ICON_FA_FIRST_ORDER "\xef\x8a\xb0" // U+f2b0
|
||||
#define ICON_FA_FIRST_ORDER_ALT "\xef\x94\x8a" // U+f50a
|
||||
#define ICON_FA_FIRSTDRAFT "\xef\x8e\xa1" // U+f3a1
|
||||
#define ICON_FA_FLICKR "\xef\x85\xae" // U+f16e
|
||||
#define ICON_FA_FLIPBOARD "\xef\x91\x8d" // U+f44d
|
||||
#define ICON_FA_FLUTTER "\xee\x9a\x94" // U+e694
|
||||
#define ICON_FA_FLY "\xef\x90\x97" // U+f417
|
||||
#define ICON_FA_FONT_AWESOME "\xef\x8a\xb4" // U+f2b4
|
||||
#define ICON_FA_FONTICONS "\xef\x8a\x80" // U+f280
|
||||
#define ICON_FA_FONTICONS_FI "\xef\x8e\xa2" // U+f3a2
|
||||
#define ICON_FA_FORGEJO "\xee\xa1\xa0" // U+e860
|
||||
#define ICON_FA_FORT_AWESOME "\xef\x8a\x86" // U+f286
|
||||
#define ICON_FA_FORT_AWESOME_ALT "\xef\x8e\xa3" // U+f3a3
|
||||
#define ICON_FA_FORUMBEE "\xef\x88\x91" // U+f211
|
||||
#define ICON_FA_FOURSQUARE "\xef\x86\x80" // U+f180
|
||||
#define ICON_FA_FREE_CODE_CAMP "\xef\x8b\x85" // U+f2c5
|
||||
#define ICON_FA_FREEBSD "\xef\x8e\xa4" // U+f3a4
|
||||
#define ICON_FA_FULCRUM "\xef\x94\x8b" // U+f50b
|
||||
#define ICON_FA_GALACTIC_REPUBLIC "\xef\x94\x8c" // U+f50c
|
||||
#define ICON_FA_GALACTIC_SENATE "\xef\x94\x8d" // U+f50d
|
||||
#define ICON_FA_GET_POCKET "\xef\x89\xa5" // U+f265
|
||||
#define ICON_FA_GG "\xef\x89\xa0" // U+f260
|
||||
#define ICON_FA_GG_CIRCLE "\xef\x89\xa1" // U+f261
|
||||
#define ICON_FA_GIT "\xef\x87\x93" // U+f1d3
|
||||
#define ICON_FA_GIT_ALT "\xef\xa1\x81" // U+f841
|
||||
#define ICON_FA_GITEE "\xee\xa1\xa3" // U+e863
|
||||
#define ICON_FA_GITHUB "\xef\x82\x9b" // U+f09b
|
||||
#define ICON_FA_GITHUB_ALT "\xef\x84\x93" // U+f113
|
||||
#define ICON_FA_GITKRAKEN "\xef\x8e\xa6" // U+f3a6
|
||||
#define ICON_FA_GITLAB "\xef\x8a\x96" // U+f296
|
||||
#define ICON_FA_GITTER "\xef\x90\xa6" // U+f426
|
||||
#define ICON_FA_GLIDE "\xef\x8a\xa5" // U+f2a5
|
||||
#define ICON_FA_GLIDE_G "\xef\x8a\xa6" // U+f2a6
|
||||
#define ICON_FA_GLOBALEAKS "\xee\xa1\x9d" // U+e85d
|
||||
#define ICON_FA_GOFORE "\xef\x8e\xa7" // U+f3a7
|
||||
#define ICON_FA_GOLANG "\xee\x90\x8f" // U+e40f
|
||||
#define ICON_FA_GOODREADS "\xef\x8e\xa8" // U+f3a8
|
||||
#define ICON_FA_GOODREADS_G "\xef\x8e\xa9" // U+f3a9
|
||||
#define ICON_FA_GOOGLE "\xef\x86\xa0" // U+f1a0
|
||||
#define ICON_FA_GOOGLE_DRIVE "\xef\x8e\xaa" // U+f3aa
|
||||
#define ICON_FA_GOOGLE_PAY "\xee\x81\xb9" // U+e079
|
||||
#define ICON_FA_GOOGLE_PLAY "\xef\x8e\xab" // U+f3ab
|
||||
#define ICON_FA_GOOGLE_PLUS "\xef\x8a\xb3" // U+f2b3
|
||||
#define ICON_FA_GOOGLE_PLUS_G "\xef\x83\x95" // U+f0d5
|
||||
#define ICON_FA_GOOGLE_SCHOLAR "\xee\x98\xbb" // U+e63b
|
||||
#define ICON_FA_GOOGLE_WALLET "\xef\x87\xae" // U+f1ee
|
||||
#define ICON_FA_GRATIPAY "\xef\x86\x84" // U+f184
|
||||
#define ICON_FA_GRAV "\xef\x8b\x96" // U+f2d6
|
||||
#define ICON_FA_GRIPFIRE "\xef\x8e\xac" // U+f3ac
|
||||
#define ICON_FA_GRUNT "\xef\x8e\xad" // U+f3ad
|
||||
#define ICON_FA_GUILDED "\xee\x81\xbe" // U+e07e
|
||||
#define ICON_FA_GULP "\xef\x8e\xae" // U+f3ae
|
||||
#define ICON_FA_HACKER_NEWS "\xef\x87\x94" // U+f1d4
|
||||
#define ICON_FA_HACKERRANK "\xef\x97\xb7" // U+f5f7
|
||||
#define ICON_FA_HASHNODE "\xee\x92\x99" // U+e499
|
||||
#define ICON_FA_HIPS "\xef\x91\x92" // U+f452
|
||||
#define ICON_FA_HIRE_A_HELPER "\xef\x8e\xb0" // U+f3b0
|
||||
#define ICON_FA_HIVE "\xee\x81\xbf" // U+e07f
|
||||
#define ICON_FA_HOOLI "\xef\x90\xa7" // U+f427
|
||||
#define ICON_FA_HORNBILL "\xef\x96\x92" // U+f592
|
||||
#define ICON_FA_HOTJAR "\xef\x8e\xb1" // U+f3b1
|
||||
#define ICON_FA_HOUZZ "\xef\x89\xbc" // U+f27c
|
||||
#define ICON_FA_HTML5 "\xef\x84\xbb" // U+f13b
|
||||
#define ICON_FA_HUBSPOT "\xef\x8e\xb2" // U+f3b2
|
||||
#define ICON_FA_HUGGING_FACE "\xee\xa1\xa9" // U+e869
|
||||
#define ICON_FA_IDEAL "\xee\x80\x93" // U+e013
|
||||
#define ICON_FA_IMDB "\xef\x8b\x98" // U+f2d8
|
||||
#define ICON_FA_INSTAGRAM "\xef\x85\xad" // U+f16d
|
||||
#define ICON_FA_INSTALOD "\xee\x82\x81" // U+e081
|
||||
#define ICON_FA_INTERCOM "\xef\x9e\xaf" // U+f7af
|
||||
#define ICON_FA_INTERNET_EXPLORER "\xef\x89\xab" // U+f26b
|
||||
#define ICON_FA_INVISION "\xef\x9e\xb0" // U+f7b0
|
||||
#define ICON_FA_IOXHOST "\xef\x88\x88" // U+f208
|
||||
#define ICON_FA_ITCH_IO "\xef\xa0\xba" // U+f83a
|
||||
#define ICON_FA_ITUNES "\xef\x8e\xb4" // U+f3b4
|
||||
#define ICON_FA_ITUNES_NOTE "\xef\x8e\xb5" // U+f3b5
|
||||
#define ICON_FA_JAVA "\xef\x93\xa4" // U+f4e4
|
||||
#define ICON_FA_JEDI_ORDER "\xef\x94\x8e" // U+f50e
|
||||
#define ICON_FA_JENKINS "\xef\x8e\xb6" // U+f3b6
|
||||
#define ICON_FA_JIRA "\xef\x9e\xb1" // U+f7b1
|
||||
#define ICON_FA_JOGET "\xef\x8e\xb7" // U+f3b7
|
||||
#define ICON_FA_JOOMLA "\xef\x86\xaa" // U+f1aa
|
||||
#define ICON_FA_JS "\xef\x8e\xb8" // U+f3b8
|
||||
#define ICON_FA_JSFIDDLE "\xef\x87\x8c" // U+f1cc
|
||||
#define ICON_FA_JULIA "\xee\xa1\x92" // U+e852
|
||||
#define ICON_FA_JXL "\xee\x99\xbb" // U+e67b
|
||||
#define ICON_FA_KAGGLE "\xef\x97\xba" // U+f5fa
|
||||
#define ICON_FA_KAKAO_TALK "\xee\x9f\x97" // U+e7d7
|
||||
#define ICON_FA_KEYBASE "\xef\x93\xb5" // U+f4f5
|
||||
#define ICON_FA_KEYCDN "\xef\x8e\xba" // U+f3ba
|
||||
#define ICON_FA_KICKSTARTER "\xef\x8e\xbb" // U+f3bb
|
||||
#define ICON_FA_KICKSTARTER_K "\xef\x8e\xbc" // U+f3bc
|
||||
#define ICON_FA_KO_FI "\xee\xa1\x96" // U+e856
|
||||
#define ICON_FA_KORVUE "\xef\x90\xaf" // U+f42f
|
||||
#define ICON_FA_KUBERNETES "\xee\xa1\x97" // U+e857
|
||||
#define ICON_FA_LARAVEL "\xef\x8e\xbd" // U+f3bd
|
||||
#define ICON_FA_LASTFM "\xef\x88\x82" // U+f202
|
||||
#define ICON_FA_LEANPUB "\xef\x88\x92" // U+f212
|
||||
#define ICON_FA_LEETCODE "\xee\xa1\xaa" // U+e86a
|
||||
#define ICON_FA_LESS "\xef\x90\x9d" // U+f41d
|
||||
#define ICON_FA_LETTERBOXD "\xee\x98\xad" // U+e62d
|
||||
#define ICON_FA_LINE "\xef\x8f\x80" // U+f3c0
|
||||
#define ICON_FA_LINKEDIN "\xef\x82\x8c" // U+f08c
|
||||
#define ICON_FA_LINKEDIN_IN "\xef\x83\xa1" // U+f0e1
|
||||
#define ICON_FA_LINKTREE "\xee\x9f\x98" // U+e7d8
|
||||
#define ICON_FA_LINODE "\xef\x8a\xb8" // U+f2b8
|
||||
#define ICON_FA_LINUX "\xef\x85\xbc" // U+f17c
|
||||
#define ICON_FA_LUMON "\xee\x9f\xa2" // U+e7e2
|
||||
#define ICON_FA_LUMON_DROP "\xee\x9f\xa3" // U+e7e3
|
||||
#define ICON_FA_LYFT "\xef\x8f\x83" // U+f3c3
|
||||
#define ICON_FA_MAGENTO "\xef\x8f\x84" // U+f3c4
|
||||
#define ICON_FA_MAILCHIMP "\xef\x96\x9e" // U+f59e
|
||||
#define ICON_FA_MANDALORIAN "\xef\x94\x8f" // U+f50f
|
||||
#define ICON_FA_MARKDOWN "\xef\x98\x8f" // U+f60f
|
||||
#define ICON_FA_MASTODON "\xef\x93\xb6" // U+f4f6
|
||||
#define ICON_FA_MAXCDN "\xef\x84\xb6" // U+f136
|
||||
#define ICON_FA_MDB "\xef\xa3\x8a" // U+f8ca
|
||||
#define ICON_FA_MEDAPPS "\xef\x8f\x86" // U+f3c6
|
||||
#define ICON_FA_MEDIUM "\xef\x88\xba" // U+f23a
|
||||
#define ICON_FA_MEDRT "\xef\x8f\x88" // U+f3c8
|
||||
#define ICON_FA_MEETUP "\xef\x8b\xa0" // U+f2e0
|
||||
#define ICON_FA_MEGAPORT "\xef\x96\xa3" // U+f5a3
|
||||
#define ICON_FA_MENDELEY "\xef\x9e\xb3" // U+f7b3
|
||||
#define ICON_FA_META "\xee\x92\x9b" // U+e49b
|
||||
#define ICON_FA_MICROBLOG "\xee\x80\x9a" // U+e01a
|
||||
#define ICON_FA_MICROSOFT "\xef\x8f\x8a" // U+f3ca
|
||||
#define ICON_FA_MINTBIT "\xee\x98\xaf" // U+e62f
|
||||
#define ICON_FA_MIX "\xef\x8f\x8b" // U+f3cb
|
||||
#define ICON_FA_MIXCLOUD "\xef\x8a\x89" // U+f289
|
||||
#define ICON_FA_MIXER "\xee\x81\x96" // U+e056
|
||||
#define ICON_FA_MIZUNI "\xef\x8f\x8c" // U+f3cc
|
||||
#define ICON_FA_MODX "\xef\x8a\x85" // U+f285
|
||||
#define ICON_FA_MONERO "\xef\x8f\x90" // U+f3d0
|
||||
#define ICON_FA_NAPSTER "\xef\x8f\x92" // U+f3d2
|
||||
#define ICON_FA_NEOS "\xef\x98\x92" // U+f612
|
||||
#define ICON_FA_NFC_DIRECTIONAL "\xee\x94\xb0" // U+e530
|
||||
#define ICON_FA_NFC_SYMBOL "\xee\x94\xb1" // U+e531
|
||||
#define ICON_FA_NIMBLR "\xef\x96\xa8" // U+f5a8
|
||||
#define ICON_FA_NODE "\xef\x90\x99" // U+f419
|
||||
#define ICON_FA_NODE_JS "\xef\x8f\x93" // U+f3d3
|
||||
#define ICON_FA_NOTION "\xee\x9f\x99" // U+e7d9
|
||||
#define ICON_FA_NPM "\xef\x8f\x94" // U+f3d4
|
||||
#define ICON_FA_NS8 "\xef\x8f\x95" // U+f3d5
|
||||
#define ICON_FA_NUTRITIONIX "\xef\x8f\x96" // U+f3d6
|
||||
#define ICON_FA_OBSIDIAN "\xee\xa1\xb9" // U+e879
|
||||
#define ICON_FA_OCTOPUS_DEPLOY "\xee\x82\x82" // U+e082
|
||||
#define ICON_FA_ODNOKLASSNIKI "\xef\x89\xa3" // U+f263
|
||||
#define ICON_FA_ODYSEE "\xee\x97\x86" // U+e5c6
|
||||
#define ICON_FA_OLD_REPUBLIC "\xef\x94\x90" // U+f510
|
||||
#define ICON_FA_OPENAI "\xee\x9f\x8f" // U+e7cf
|
||||
#define ICON_FA_OPENCART "\xef\x88\xbd" // U+f23d
|
||||
#define ICON_FA_OPENID "\xef\x86\x9b" // U+f19b
|
||||
#define ICON_FA_OPENSTREETMAP "\xee\xa1\xab" // U+e86b
|
||||
#define ICON_FA_OPENSUSE "\xee\x98\xab" // U+e62b
|
||||
#define ICON_FA_OPERA "\xef\x89\xaa" // U+f26a
|
||||
#define ICON_FA_OPTIN_MONSTER "\xef\x88\xbc" // U+f23c
|
||||
#define ICON_FA_ORCID "\xef\xa3\x92" // U+f8d2
|
||||
#define ICON_FA_OSI "\xef\x90\x9a" // U+f41a
|
||||
#define ICON_FA_PADLET "\xee\x92\xa0" // U+e4a0
|
||||
#define ICON_FA_PAGE4 "\xef\x8f\x97" // U+f3d7
|
||||
#define ICON_FA_PAGELINES "\xef\x86\x8c" // U+f18c
|
||||
#define ICON_FA_PALFED "\xef\x8f\x98" // U+f3d8
|
||||
#define ICON_FA_PANDORA "\xee\x9f\x9a" // U+e7da
|
||||
#define ICON_FA_PATREON "\xef\x8f\x99" // U+f3d9
|
||||
#define ICON_FA_PAYPAL "\xef\x87\xad" // U+f1ed
|
||||
#define ICON_FA_PERBYTE "\xee\x82\x83" // U+e083
|
||||
#define ICON_FA_PERISCOPE "\xef\x8f\x9a" // U+f3da
|
||||
#define ICON_FA_PHABRICATOR "\xef\x8f\x9b" // U+f3db
|
||||
#define ICON_FA_PHOENIX_FRAMEWORK "\xef\x8f\x9c" // U+f3dc
|
||||
#define ICON_FA_PHOENIX_SQUADRON "\xef\x94\x91" // U+f511
|
||||
#define ICON_FA_PHP "\xef\x91\x97" // U+f457
|
||||
#define ICON_FA_PIED_PIPER "\xef\x8a\xae" // U+f2ae
|
||||
#define ICON_FA_PIED_PIPER_ALT "\xef\x86\xa8" // U+f1a8
|
||||
#define ICON_FA_PIED_PIPER_HAT "\xef\x93\xa5" // U+f4e5
|
||||
#define ICON_FA_PIED_PIPER_PP "\xef\x86\xa7" // U+f1a7
|
||||
#define ICON_FA_PINTEREST "\xef\x83\x92" // U+f0d2
|
||||
#define ICON_FA_PINTEREST_P "\xef\x88\xb1" // U+f231
|
||||
#define ICON_FA_PIX "\xee\x90\xba" // U+e43a
|
||||
#define ICON_FA_PIXELFED "\xee\x9f\x9b" // U+e7db
|
||||
#define ICON_FA_PIXIV "\xee\x99\x80" // U+e640
|
||||
#define ICON_FA_PLAYSTATION "\xef\x8f\x9f" // U+f3df
|
||||
#define ICON_FA_POSTGRESQL "\xee\xa1\x98" // U+e858
|
||||
#define ICON_FA_PRODUCT_HUNT "\xef\x8a\x88" // U+f288
|
||||
#define ICON_FA_PUSHED "\xef\x8f\xa1" // U+f3e1
|
||||
#define ICON_FA_PYTHON "\xef\x8f\xa2" // U+f3e2
|
||||
#define ICON_FA_QQ "\xef\x87\x96" // U+f1d6
|
||||
#define ICON_FA_QUINSCAPE "\xef\x91\x99" // U+f459
|
||||
#define ICON_FA_QUORA "\xef\x8b\x84" // U+f2c4
|
||||
#define ICON_FA_R_PROJECT "\xef\x93\xb7" // U+f4f7
|
||||
#define ICON_FA_RASPBERRY_PI "\xef\x9e\xbb" // U+f7bb
|
||||
#define ICON_FA_RAVELRY "\xef\x8b\x99" // U+f2d9
|
||||
#define ICON_FA_REACT "\xef\x90\x9b" // U+f41b
|
||||
#define ICON_FA_REACTEUROPE "\xef\x9d\x9d" // U+f75d
|
||||
#define ICON_FA_README "\xef\x93\x95" // U+f4d5
|
||||
#define ICON_FA_REBEL "\xef\x87\x90" // U+f1d0
|
||||
#define ICON_FA_RED_RIVER "\xef\x8f\xa3" // U+f3e3
|
||||
#define ICON_FA_REDDIT "\xef\x86\xa1" // U+f1a1
|
||||
#define ICON_FA_REDDIT_ALIEN "\xef\x8a\x81" // U+f281
|
||||
#define ICON_FA_REDHAT "\xef\x9e\xbc" // U+f7bc
|
||||
#define ICON_FA_RENREN "\xef\x86\x8b" // U+f18b
|
||||
#define ICON_FA_REPLYD "\xef\x8f\xa6" // U+f3e6
|
||||
#define ICON_FA_RESEARCHGATE "\xef\x93\xb8" // U+f4f8
|
||||
#define ICON_FA_RESOLVING "\xef\x8f\xa7" // U+f3e7
|
||||
#define ICON_FA_REV "\xef\x96\xb2" // U+f5b2
|
||||
#define ICON_FA_ROCKETCHAT "\xef\x8f\xa8" // U+f3e8
|
||||
#define ICON_FA_ROCKRMS "\xef\x8f\xa9" // U+f3e9
|
||||
#define ICON_FA_RUST "\xee\x81\xba" // U+e07a
|
||||
#define ICON_FA_SAFARI "\xef\x89\xa7" // U+f267
|
||||
#define ICON_FA_SALESFORCE "\xef\xa0\xbb" // U+f83b
|
||||
#define ICON_FA_SASS "\xef\x90\x9e" // U+f41e
|
||||
#define ICON_FA_SCALEWAY "\xee\xa1\x99" // U+e859
|
||||
#define ICON_FA_SCHLIX "\xef\x8f\xaa" // U+f3ea
|
||||
#define ICON_FA_SCREENPAL "\xee\x95\xb0" // U+e570
|
||||
#define ICON_FA_SCRIBD "\xef\x8a\x8a" // U+f28a
|
||||
#define ICON_FA_SEARCHENGIN "\xef\x8f\xab" // U+f3eb
|
||||
#define ICON_FA_SELLCAST "\xef\x8b\x9a" // U+f2da
|
||||
#define ICON_FA_SELLSY "\xef\x88\x93" // U+f213
|
||||
#define ICON_FA_SERVICESTACK "\xef\x8f\xac" // U+f3ec
|
||||
#define ICON_FA_SHIRTSINBULK "\xef\x88\x94" // U+f214
|
||||
#define ICON_FA_SHOELACE "\xee\x98\x8c" // U+e60c
|
||||
#define ICON_FA_SHOPIFY "\xee\x81\x97" // U+e057
|
||||
#define ICON_FA_SHOPWARE "\xef\x96\xb5" // U+f5b5
|
||||
#define ICON_FA_SIGNAL_MESSENGER "\xee\x99\xa3" // U+e663
|
||||
#define ICON_FA_SIMPLYBUILT "\xef\x88\x95" // U+f215
|
||||
#define ICON_FA_SISTRIX "\xef\x8f\xae" // U+f3ee
|
||||
#define ICON_FA_SITH "\xef\x94\x92" // U+f512
|
||||
#define ICON_FA_SITROX "\xee\x91\x8a" // U+e44a
|
||||
#define ICON_FA_SKETCH "\xef\x9f\x86" // U+f7c6
|
||||
#define ICON_FA_SKYATLAS "\xef\x88\x96" // U+f216
|
||||
#define ICON_FA_SKYPE "\xef\x85\xbe" // U+f17e
|
||||
#define ICON_FA_SLACK "\xef\x86\x98" // U+f198
|
||||
#define ICON_FA_SLIDESHARE "\xef\x87\xa7" // U+f1e7
|
||||
#define ICON_FA_SNAPCHAT "\xef\x8a\xab" // U+f2ab
|
||||
#define ICON_FA_SOLANA "\xee\xa1\x9e" // U+e85e
|
||||
#define ICON_FA_SOUNDCLOUD "\xef\x86\xbe" // U+f1be
|
||||
#define ICON_FA_SOURCETREE "\xef\x9f\x93" // U+f7d3
|
||||
#define ICON_FA_SPACE_AWESOME "\xee\x96\xac" // U+e5ac
|
||||
#define ICON_FA_SPEAKAP "\xef\x8f\xb3" // U+f3f3
|
||||
#define ICON_FA_SPEAKER_DECK "\xef\xa0\xbc" // U+f83c
|
||||
#define ICON_FA_SPOTIFY "\xef\x86\xbc" // U+f1bc
|
||||
#define ICON_FA_SQUARE_BEHANCE "\xef\x86\xb5" // U+f1b5
|
||||
#define ICON_FA_SQUARE_BLUESKY "\xee\x9a\xa3" // U+e6a3
|
||||
#define ICON_FA_SQUARE_DESKPRO "\xee\xa1\x84" // U+e844
|
||||
#define ICON_FA_SQUARE_DRIBBBLE "\xef\x8e\x97" // U+f397
|
||||
#define ICON_FA_SQUARE_FACEBOOK "\xef\x82\x82" // U+f082
|
||||
#define ICON_FA_SQUARE_FIGMA "\xee\x9f\xa4" // U+e7e4
|
||||
#define ICON_FA_SQUARE_FONT_AWESOME "\xee\x96\xad" // U+e5ad
|
||||
#define ICON_FA_SQUARE_FONT_AWESOME_STROKE "\xef\x8d\x9c" // U+f35c
|
||||
#define ICON_FA_SQUARE_GIT "\xef\x87\x92" // U+f1d2
|
||||
#define ICON_FA_SQUARE_GITHUB "\xef\x82\x92" // U+f092
|
||||
#define ICON_FA_SQUARE_GITLAB "\xee\x96\xae" // U+e5ae
|
||||
#define ICON_FA_SQUARE_GOOGLE_PLUS "\xef\x83\x94" // U+f0d4
|
||||
#define ICON_FA_SQUARE_HACKER_NEWS "\xef\x8e\xaf" // U+f3af
|
||||
#define ICON_FA_SQUARE_INSTAGRAM "\xee\x81\x95" // U+e055
|
||||
#define ICON_FA_SQUARE_JS "\xef\x8e\xb9" // U+f3b9
|
||||
#define ICON_FA_SQUARE_LASTFM "\xef\x88\x83" // U+f203
|
||||
#define ICON_FA_SQUARE_LETTERBOXD "\xee\x98\xae" // U+e62e
|
||||
#define ICON_FA_SQUARE_LINKEDIN "\xee\x9f\x90" // U+e7d0
|
||||
#define ICON_FA_SQUARE_ODNOKLASSNIKI "\xef\x89\xa4" // U+f264
|
||||
#define ICON_FA_SQUARE_PIED_PIPER "\xee\x80\x9e" // U+e01e
|
||||
#define ICON_FA_SQUARE_PINTEREST "\xef\x83\x93" // U+f0d3
|
||||
#define ICON_FA_SQUARE_REDDIT "\xef\x86\xa2" // U+f1a2
|
||||
#define ICON_FA_SQUARE_SNAPCHAT "\xef\x8a\xad" // U+f2ad
|
||||
#define ICON_FA_SQUARE_STEAM "\xef\x86\xb7" // U+f1b7
|
||||
#define ICON_FA_SQUARE_THREADS "\xee\x98\x99" // U+e619
|
||||
#define ICON_FA_SQUARE_TUMBLR "\xef\x85\xb4" // U+f174
|
||||
#define ICON_FA_SQUARE_TWITTER "\xef\x82\x81" // U+f081
|
||||
#define ICON_FA_SQUARE_UPWORK "\xee\x99\xbc" // U+e67c
|
||||
#define ICON_FA_SQUARE_VIADEO "\xef\x8a\xaa" // U+f2aa
|
||||
#define ICON_FA_SQUARE_VIMEO "\xef\x86\x94" // U+f194
|
||||
#define ICON_FA_SQUARE_WEB_AWESOME "\xee\x9a\x83" // U+e683
|
||||
#define ICON_FA_SQUARE_WEB_AWESOME_STROKE "\xee\x9a\x84" // U+e684
|
||||
#define ICON_FA_SQUARE_WHATSAPP "\xef\x90\x8c" // U+f40c
|
||||
#define ICON_FA_SQUARE_X_TWITTER "\xee\x98\x9a" // U+e61a
|
||||
#define ICON_FA_SQUARE_XING "\xef\x85\xa9" // U+f169
|
||||
#define ICON_FA_SQUARE_YOUTUBE "\xef\x90\xb1" // U+f431
|
||||
#define ICON_FA_SQUARESPACE "\xef\x96\xbe" // U+f5be
|
||||
#define ICON_FA_STACK_EXCHANGE "\xef\x86\x8d" // U+f18d
|
||||
#define ICON_FA_STACK_OVERFLOW "\xef\x85\xac" // U+f16c
|
||||
#define ICON_FA_STACKPATH "\xef\xa1\x82" // U+f842
|
||||
#define ICON_FA_STAYLINKED "\xef\x8f\xb5" // U+f3f5
|
||||
#define ICON_FA_STEAM "\xef\x86\xb6" // U+f1b6
|
||||
#define ICON_FA_STEAM_SYMBOL "\xef\x8f\xb6" // U+f3f6
|
||||
#define ICON_FA_STICKER_MULE "\xef\x8f\xb7" // U+f3f7
|
||||
#define ICON_FA_STRAVA "\xef\x90\xa8" // U+f428
|
||||
#define ICON_FA_STRIPE "\xef\x90\xa9" // U+f429
|
||||
#define ICON_FA_STRIPE_S "\xef\x90\xaa" // U+f42a
|
||||
#define ICON_FA_STUBBER "\xee\x97\x87" // U+e5c7
|
||||
#define ICON_FA_STUDIOVINARI "\xef\x8f\xb8" // U+f3f8
|
||||
#define ICON_FA_STUMBLEUPON "\xef\x86\xa4" // U+f1a4
|
||||
#define ICON_FA_STUMBLEUPON_CIRCLE "\xef\x86\xa3" // U+f1a3
|
||||
#define ICON_FA_SUPERPOWERS "\xef\x8b\x9d" // U+f2dd
|
||||
#define ICON_FA_SUPPLE "\xef\x8f\xb9" // U+f3f9
|
||||
#define ICON_FA_SUPPORTNOW "\xee\xa0\xb3" // U+e833
|
||||
#define ICON_FA_SUSE "\xef\x9f\x96" // U+f7d6
|
||||
#define ICON_FA_SVELTE "\xee\xa1\xa8" // U+e868
|
||||
#define ICON_FA_SWIFT "\xef\xa3\xa1" // U+f8e1
|
||||
#define ICON_FA_SYMFONY "\xef\xa0\xbd" // U+f83d
|
||||
#define ICON_FA_SYMFONYCASTS "\xee\xa2\xab" // U+e8ab
|
||||
#define ICON_FA_TAILWIND_CSS "\xee\xa1\xa6" // U+e866
|
||||
#define ICON_FA_TEAMSPEAK "\xef\x93\xb9" // U+f4f9
|
||||
#define ICON_FA_TELEGRAM "\xef\x8b\x86" // U+f2c6
|
||||
#define ICON_FA_TENCENT_WEIBO "\xef\x87\x95" // U+f1d5
|
||||
#define ICON_FA_TEX "\xee\x9f\xbf" // U+e7ff
|
||||
#define ICON_FA_THE_RED_YETI "\xef\x9a\x9d" // U+f69d
|
||||
#define ICON_FA_THEMECO "\xef\x97\x86" // U+f5c6
|
||||
#define ICON_FA_THEMEISLE "\xef\x8a\xb2" // U+f2b2
|
||||
#define ICON_FA_THINK_PEAKS "\xef\x9c\xb1" // U+f731
|
||||
#define ICON_FA_THREADS "\xee\x98\x98" // U+e618
|
||||
#define ICON_FA_THREEMA "\xee\xa1\x9f" // U+e85f
|
||||
#define ICON_FA_TIDAL "\xee\x9f\x9c" // U+e7dc
|
||||
#define ICON_FA_TIKTOK "\xee\x81\xbb" // U+e07b
|
||||
#define ICON_FA_TOR_BROWSER "\xee\xa0\xb8" // U+e838
|
||||
#define ICON_FA_TRADE_FEDERATION "\xef\x94\x93" // U+f513
|
||||
#define ICON_FA_TRELLO "\xef\x86\x81" // U+f181
|
||||
#define ICON_FA_TUMBLR "\xef\x85\xb3" // U+f173
|
||||
#define ICON_FA_TWITCH "\xef\x87\xa8" // U+f1e8
|
||||
#define ICON_FA_TWITTER "\xef\x82\x99" // U+f099
|
||||
#define ICON_FA_TYPESCRIPT "\xee\xa1\x80" // U+e840
|
||||
#define ICON_FA_TYPO3 "\xef\x90\xab" // U+f42b
|
||||
#define ICON_FA_UBER "\xef\x90\x82" // U+f402
|
||||
#define ICON_FA_UBUNTU "\xef\x9f\x9f" // U+f7df
|
||||
#define ICON_FA_UIKIT "\xef\x90\x83" // U+f403
|
||||
#define ICON_FA_ULTRALYTICS "\xee\xa1\xad" // U+e86d
|
||||
#define ICON_FA_ULTRALYTICS_HUB "\xee\xa1\xae" // U+e86e
|
||||
#define ICON_FA_ULTRALYTICS_YOLO "\xee\xa1\xaf" // U+e86f
|
||||
#define ICON_FA_UMBRACO "\xef\xa3\xa8" // U+f8e8
|
||||
#define ICON_FA_UNCHARTED "\xee\x82\x84" // U+e084
|
||||
#define ICON_FA_UNIREGISTRY "\xef\x90\x84" // U+f404
|
||||
#define ICON_FA_UNISON "\xee\xa1\x94" // U+e854
|
||||
#define ICON_FA_UNITY "\xee\x81\x89" // U+e049
|
||||
#define ICON_FA_UNREAL_ENGINE "\xee\xa1\x9c" // U+e85c
|
||||
#define ICON_FA_UNSPLASH "\xee\x81\xbc" // U+e07c
|
||||
#define ICON_FA_UNTAPPD "\xef\x90\x85" // U+f405
|
||||
#define ICON_FA_UPS "\xef\x9f\xa0" // U+f7e0
|
||||
#define ICON_FA_UPWORK "\xee\x99\x81" // U+e641
|
||||
#define ICON_FA_USB "\xef\x8a\x87" // U+f287
|
||||
#define ICON_FA_USPS "\xef\x9f\xa1" // U+f7e1
|
||||
#define ICON_FA_USSUNNAH "\xef\x90\x87" // U+f407
|
||||
#define ICON_FA_VAADIN "\xef\x90\x88" // U+f408
|
||||
#define ICON_FA_VENMO "\xee\xa1\x9a" // U+e85a
|
||||
#define ICON_FA_VENMO_V "\xee\xa1\x9b" // U+e85b
|
||||
#define ICON_FA_VIACOIN "\xef\x88\xb7" // U+f237
|
||||
#define ICON_FA_VIADEO "\xef\x8a\xa9" // U+f2a9
|
||||
#define ICON_FA_VIBER "\xef\x90\x89" // U+f409
|
||||
#define ICON_FA_VIM "\xee\xa2\x8a" // U+e88a
|
||||
#define ICON_FA_VIMEO "\xef\x90\x8a" // U+f40a
|
||||
#define ICON_FA_VIMEO_V "\xef\x89\xbd" // U+f27d
|
||||
#define ICON_FA_VINE "\xef\x87\x8a" // U+f1ca
|
||||
#define ICON_FA_VK "\xef\x86\x89" // U+f189
|
||||
#define ICON_FA_VNV "\xef\x90\x8b" // U+f40b
|
||||
#define ICON_FA_VSCO "\xee\x9f\x9d" // U+e7dd
|
||||
#define ICON_FA_VUEJS "\xef\x90\x9f" // U+f41f
|
||||
#define ICON_FA_W3C "\xee\x9f\x9e" // U+e7de
|
||||
#define ICON_FA_WATCHMAN_MONITORING "\xee\x82\x87" // U+e087
|
||||
#define ICON_FA_WAZE "\xef\xa0\xbf" // U+f83f
|
||||
#define ICON_FA_WEB_AWESOME "\xee\x9a\x82" // U+e682
|
||||
#define ICON_FA_WEBFLOW "\xee\x99\x9c" // U+e65c
|
||||
#define ICON_FA_WEEBLY "\xef\x97\x8c" // U+f5cc
|
||||
#define ICON_FA_WEIBO "\xef\x86\x8a" // U+f18a
|
||||
#define ICON_FA_WEIXIN "\xef\x87\x97" // U+f1d7
|
||||
#define ICON_FA_WHATSAPP "\xef\x88\xb2" // U+f232
|
||||
#define ICON_FA_WHMCS "\xef\x90\x8d" // U+f40d
|
||||
#define ICON_FA_WIKIPEDIA_W "\xef\x89\xa6" // U+f266
|
||||
#define ICON_FA_WINDOWS "\xef\x85\xba" // U+f17a
|
||||
#define ICON_FA_WIRSINDHANDWERK "\xee\x8b\x90" // U+e2d0
|
||||
#define ICON_FA_WIX "\xef\x97\x8f" // U+f5cf
|
||||
#define ICON_FA_WIZARDS_OF_THE_COAST "\xef\x9c\xb0" // U+f730
|
||||
#define ICON_FA_WODU "\xee\x82\x88" // U+e088
|
||||
#define ICON_FA_WOLF_PACK_BATTALION "\xef\x94\x94" // U+f514
|
||||
#define ICON_FA_WORDPRESS "\xef\x86\x9a" // U+f19a
|
||||
#define ICON_FA_WORDPRESS_SIMPLE "\xef\x90\x91" // U+f411
|
||||
#define ICON_FA_WPBEGINNER "\xef\x8a\x97" // U+f297
|
||||
#define ICON_FA_WPEXPLORER "\xef\x8b\x9e" // U+f2de
|
||||
#define ICON_FA_WPFORMS "\xef\x8a\x98" // U+f298
|
||||
#define ICON_FA_WPRESSR "\xef\x8f\xa4" // U+f3e4
|
||||
#define ICON_FA_X_TWITTER "\xee\x98\x9b" // U+e61b
|
||||
#define ICON_FA_XBOX "\xef\x90\x92" // U+f412
|
||||
#define ICON_FA_XING "\xef\x85\xa8" // U+f168
|
||||
#define ICON_FA_XMPP "\xee\xa1\xa4" // U+e864
|
||||
#define ICON_FA_Y_COMBINATOR "\xef\x88\xbb" // U+f23b
|
||||
#define ICON_FA_YAHOO "\xef\x86\x9e" // U+f19e
|
||||
#define ICON_FA_YAMMER "\xef\xa1\x80" // U+f840
|
||||
#define ICON_FA_YANDEX "\xef\x90\x93" // U+f413
|
||||
#define ICON_FA_YANDEX_INTERNATIONAL "\xef\x90\x94" // U+f414
|
||||
#define ICON_FA_YARN "\xef\x9f\xa3" // U+f7e3
|
||||
#define ICON_FA_YELP "\xef\x87\xa9" // U+f1e9
|
||||
#define ICON_FA_YOAST "\xef\x8a\xb1" // U+f2b1
|
||||
#define ICON_FA_YOUTUBE "\xef\x85\xa7" // U+f167
|
||||
#define ICON_FA_ZHIHU "\xef\x98\xbf" // U+f63f
|
||||
#define ICON_FA_ZOOM "\xee\xa1\xbb" // U+e87b
|
||||
#define ICON_FA_ZULIP "\xee\xa1\x93" // U+e853
|
||||
Vendored
-1628
File diff suppressed because it is too large
Load Diff
Vendored
-415
@@ -1,415 +0,0 @@
|
||||
/*
|
||||
* This file has been auto generated by srcript, see genCimSpinner.rb
|
||||
*/
|
||||
#include "cimspinner_config.h"
|
||||
//#define SPINNER_RAINBOW
|
||||
//#define SPINNER_RAINBOWMIX
|
||||
//#define SPINNER_ROTATINGHEART
|
||||
//#define SPINNER_ANG
|
||||
//#define SPINNER_ANG8
|
||||
//#define SPINNER_ANGMIX
|
||||
//#define SPINNER_LOADINGRING
|
||||
//#define SPINNER_CLOCK
|
||||
//#define SPINNER_PULSAR
|
||||
//#define SPINNER_DOUBLEFADEPULSAR
|
||||
//#define SPINNER_TWINPULSAR
|
||||
//#define SPINNER_FADEPULSAR
|
||||
//#define SPINNER_FADEPULSARSQUARE
|
||||
//#define SPINNER_CIRCULARLINES
|
||||
//#define SPINNER_DOTS
|
||||
//#define SPINNER_VDOTS
|
||||
//#define SPINNER_BOUNCEDOTS
|
||||
//#define SPINNER_ZIPDOTS
|
||||
//#define SPINNER_DOTSTOPOINTS
|
||||
//#define SPINNER_DOTSTOBAR
|
||||
//#define SPINNER_WAVEDOTS
|
||||
//#define SPINNER_FADEDOTS
|
||||
//#define SPINNER_THREEDOTS
|
||||
//#define SPINNER_FIVEDOTS
|
||||
//#define SPINNER_4CALEIDOSPCOPE
|
||||
//#define SPINNER_MULTIFADEDOTS
|
||||
//#define SPINNER_THICKTOSIN
|
||||
//#define SPINNER_SCALEDOTS
|
||||
//#define SPINNER_SQUARESPINS
|
||||
//#define SPINNER_MOVINGDOTS
|
||||
//#define SPINNER_ROTATEDOTS
|
||||
//#define SPINNER_ORIONDOTS
|
||||
//#define SPINNER_GALAXYDOTS
|
||||
//#define SPINNER_TWINANG
|
||||
//#define SPINNER_FILLING
|
||||
//#define SPINNER_FILLINGMEM
|
||||
//#define SPINNER_TOPUP
|
||||
//#define SPINNER_TWINANG180
|
||||
//#define SPINNER_TWINANG360
|
||||
//#define SPINNER_INCDOTS
|
||||
//#define SPINNER_INCFULLDOTS
|
||||
//#define SPINNER_FADEBARS
|
||||
//#define SPINNER_FADETRIS
|
||||
//#define SPINNER_BARSROTATEFADE
|
||||
//#define SPINNER_BARSSCALEMIDDLE
|
||||
//#define SPINNER_ANGTWIN
|
||||
//#define SPINNER_ARCROTATION
|
||||
//#define SPINNER_ARCFADE
|
||||
//#define SPINNER_SIMPLEARCFADE
|
||||
//#define SPINNER_SQUARESTROKEFADE
|
||||
//#define SPINNER_ASCIISYMBOLPOINTS
|
||||
//#define SPINNER_TEXTFADING
|
||||
//#define SPINNER_SEVENSEGMENTS
|
||||
//#define SPINNER_SQUARESTROKEFILL
|
||||
//#define SPINNER_SQUARESTROKELOADING
|
||||
//#define SPINNER_SQUARELOADING
|
||||
//#define SPINNER_FILLEDARCFADE
|
||||
//#define SPINNER_POINTSROLLER
|
||||
//#define SPINNER_POINTSARCBOUNCE
|
||||
//#define SPINNER_FILLEDARCCOLOR
|
||||
//#define SPINNER_FILLEDARCRING
|
||||
//#define SPINNER_ARCWEDGES
|
||||
//#define SPINNER_TWINBALL
|
||||
//#define SPINNER_SOLARBALLS
|
||||
//#define SPINNER_SOLARSCALEBALLS
|
||||
//#define SPINNER_SOLARARCS
|
||||
//#define SPINNER_MOVINGARCS
|
||||
//#define SPINNER_RAINBOWCIRCLE
|
||||
//#define SPINNER_BOUNCEBALL
|
||||
//#define SPINNER_PULSARBALL
|
||||
//#define SPINNER_INCSCALEDOTS
|
||||
//#define SPINNER_SOMESCALEDOTS
|
||||
//#define SPINNER_ANGTRIPLE
|
||||
//#define SPINNER_ANGECLIPSE
|
||||
//#define SPINNER_INGYANG
|
||||
//#define SPINNER_GOOEYBALLS
|
||||
//#define SPINNER_DOTSLOADING
|
||||
//#define SPINNER_ROTATEGOOEYBALLS
|
||||
//#define SPINNER_HERBERTBALLS
|
||||
//#define SPINNER_HERBERTBALLS3D
|
||||
//#define SPINNER_ROTATETRIANGLES
|
||||
//#define SPINNER_ROTATESHAPES
|
||||
//#define SPINNER_SINSQUARES
|
||||
//#define SPINNER_MOONLINE
|
||||
//#define SPINNER_CIRCLEDROP
|
||||
//#define SPINNER_SURROUNDEDINDICATOR
|
||||
//#define SPINNER_WIFIINDICATOR
|
||||
//#define SPINNER_TRIANGLESSELECTOR
|
||||
//#define SPINNER_CAMERA
|
||||
//#define SPINNER_FLOWINGGRADIENT
|
||||
//#define SPINNER_ROTATESEGMENTS
|
||||
//#define SPINNER_LEMNISCATE
|
||||
//#define SPINNER_ROTATEGEAR
|
||||
//#define SPINNER_ROTATEWHEEL
|
||||
//#define SPINNER_ATOM
|
||||
//#define SPINNER_PATTERNRINGS
|
||||
//#define SPINNER_PATTERNECLIPSE
|
||||
//#define SPINNER_PATTERNSPHERE
|
||||
//#define SPINNER_RINGSYNCHRONOUS
|
||||
//#define SPINNER_RINGWATERMARKS
|
||||
//#define SPINNER_ROTATEDATOM
|
||||
//#define SPINNER_RAINBOWBALLS
|
||||
//#define SPINNER_RAINBOWSHOT
|
||||
//#define SPINNER_SPIRAL
|
||||
//#define SPINNER_SPIRALEYE
|
||||
//#define SPINNER_BARCHARTSINE
|
||||
//#define SPINNER_BARCHARTADVSINE
|
||||
//#define SPINNER_BARCHARTADVSINEFADE
|
||||
//#define SPINNER_BARCHARTRAINBOW
|
||||
//#define SPINNER_BLOCKS
|
||||
//#define SPINNER_TWINBLOCKS
|
||||
//#define SPINNER_SQUARERANDOMDOTS
|
||||
//#define SPINNER_SCALEBLOCKS
|
||||
//#define SPINNER_SCALESQUARES
|
||||
//#define SPINNER_SQUISHSQUARE
|
||||
//#define SPINNER_FLUID
|
||||
//#define SPINNER_FLUIDPOINTS
|
||||
//#define SPINNER_ARCPOLARFADE
|
||||
//#define SPINNER_ARCPOLARRADIUS
|
||||
//#define SPINNER_CALEIDOSCOPE
|
||||
//#define SPINNER_HBODOTS
|
||||
//#define SPINNER_MOONDOTS
|
||||
//#define SPINNER_TWINHBODOTS
|
||||
//#define SPINNER_THREEDOTSSTAR
|
||||
//#define SPINNER_SINEARCS
|
||||
//#define SPINNER_TRIANGLESSHIFT
|
||||
//#define SPINNER_POINTSSHIFT
|
||||
//#define SPINNER_SWINGDOTS
|
||||
//#define SPINNER_CIRCULARPOINTS
|
||||
//#define SPINNER_CURVEDCIRCLE
|
||||
//#define SPINNER_MODCIRCLE
|
||||
//#define SPINNER_DNADOTS
|
||||
//#define SPINNER_3SMUGGLEDOTS
|
||||
//#define SPINNER_ROTATESEGMENTSPULSAR
|
||||
//#define SPINNER_SPLINEANG
|
||||
|
||||
#pragma once
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef CIMSPINNER_API
|
||||
#define CIMSPINNER_API
|
||||
#endif
|
||||
|
||||
CIMSPINNER_API void SpinnerRainbow(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerRainbowEx(const char *label, float radius, float thickness, const ImColor color, float speed,float ang_min, float ang_max, int arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerRainbowMix(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerRainbowMixEx(const char *label, float radius, float thickness, const ImColor color, float speed,float ang_min, float ang_max, int arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerRotatingHeart(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerRotatingHeartEx(const char *label, float radius, float thickness, const ImColor color, float speed,float ang_min);
|
||||
CIMSPINNER_API void SpinnerAng(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerAngEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle, int mode);
|
||||
CIMSPINNER_API void SpinnerAng8(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerAng8Ex(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle, int mode, float rkoef);
|
||||
CIMSPINNER_API void SpinnerAngMix(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerAngMixEx(const char *label, float radius, float thickness,const ImColor color, float speed, float angle, int arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerLoadingRing(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerLoadingRingEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, int segments);
|
||||
CIMSPINNER_API void SpinnerClock(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerClockEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed);
|
||||
CIMSPINNER_API void SpinnerPulsar(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPulsarEx(const char *label, float radius, float thickness,const ImColor bg, float speed, bool sequence, float angle, int mode);
|
||||
CIMSPINNER_API void SpinnerDoubleFadePulsar(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerDoubleFadePulsarEx(const char *label, float radius, float thickness,const ImColor bg, float speed);
|
||||
CIMSPINNER_API void SpinnerTwinPulsar(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerTwinPulsarEx(const char *label, float radius, float thickness,const ImColor color, float speed, int rings, int mode);
|
||||
CIMSPINNER_API void SpinnerFadePulsar(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerFadePulsarEx(const char *label, float radius,const ImColor color, float speed, int rings, int mode);
|
||||
CIMSPINNER_API void SpinnerFadePulsarSquare(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerFadePulsarSquareEx(const char *label, float radius,const ImColor color, float speed, int rings, int mode);
|
||||
CIMSPINNER_API void SpinnerCircularLines(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerCircularLinesEx(const char *label, float radius,const ImColor color, float speed, int lines, int mode);
|
||||
CIMSPINNER_API void SpinnerDots(const char *label, float *nextdot, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerDotsEx(const char *label, float *nextdot, float radius, float thickness,const ImColor color, float speed, size_t dots, float minth, int mode);
|
||||
CIMSPINNER_API void SpinnerVDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerVDotsEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bgcolor, float speed, size_t dots, size_t mdots, int mode);
|
||||
CIMSPINNER_API void SpinnerBounceDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerBounceDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots, int mode);
|
||||
CIMSPINNER_API void SpinnerZipDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerZipDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
|
||||
CIMSPINNER_API void SpinnerDotsToPoints(const char *label, float radius, float thickness, float offset_k);
|
||||
CIMSPINNER_API void SpinnerDotsToPointsEx(const char *label, float radius, float thickness, float offset_k,const ImColor color, float speed, size_t dots);
|
||||
CIMSPINNER_API void SpinnerDotsToBar(const char *label, float radius, float thickness, float offset_k);
|
||||
CIMSPINNER_API void SpinnerDotsToBarEx(const char *label, float radius, float thickness, float offset_k,const ImColor color, float speed, size_t dots);
|
||||
CIMSPINNER_API void SpinnerWaveDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerWaveDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
|
||||
CIMSPINNER_API void SpinnerFadeDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerFadeDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt, int mode);
|
||||
CIMSPINNER_API void SpinnerThreeDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerThreeDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
|
||||
CIMSPINNER_API void SpinnerFiveDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerFiveDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
|
||||
CIMSPINNER_API void Spinner4Caleidospcope(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void Spinner4CaleidospcopeEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
|
||||
CIMSPINNER_API void SpinnerMultiFadeDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerMultiFadeDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
|
||||
CIMSPINNER_API void SpinnerThickToSin(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerThickToSinEx(const char *label, float radius, float thickness,const ImColor color, float speed, int nt, int lt, int mode);
|
||||
CIMSPINNER_API void SpinnerScaleDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerScaleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
|
||||
CIMSPINNER_API void SpinnerSquareSpins(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSquareSpinsEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerMovingDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerMovingDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
|
||||
CIMSPINNER_API void SpinnerRotateDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRotateDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int dots, int mode);
|
||||
CIMSPINNER_API void SpinnerOrionDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerOrionDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int arcs);
|
||||
CIMSPINNER_API void SpinnerGalaxyDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerGalaxyDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int arcs);
|
||||
CIMSPINNER_API void SpinnerTwinAng(const char *label, float radius1, float radius2, float thickness);
|
||||
CIMSPINNER_API void SpinnerTwinAngEx(const char *label, float radius1, float radius2, float thickness,const ImColor color1, const ImColor color2, float speed, float angle, int mode);
|
||||
CIMSPINNER_API void SpinnerFilling(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerFillingEx(const char *label, float radius, float thickness,const ImColor color1, const ImColor color2, float speed);
|
||||
CIMSPINNER_API void SpinnerFillingMem(const char *label, float radius, float thickness, const ImColor color, ImColor colorbg, float speed);
|
||||
CIMSPINNER_API void SpinnerTopup(const char *label, float radius1, float radius2);
|
||||
CIMSPINNER_API void SpinnerTopupEx(const char *label, float radius1, float radius2,const ImColor color, const ImColor fg, const ImColor bg, float speed);
|
||||
CIMSPINNER_API void SpinnerTwinAng180(const char *label, float radius1, float radius2, float thickness);
|
||||
CIMSPINNER_API void SpinnerTwinAng180Ex(const char *label, float radius1, float radius2, float thickness,const ImColor color1, const ImColor color2, float speed, float angle, int mode);
|
||||
CIMSPINNER_API void SpinnerTwinAng360(const char *label, float radius1, float radius2, float thickness);
|
||||
CIMSPINNER_API void SpinnerTwinAng360Ex(const char *label, float radius1, float radius2, float thickness,const ImColor color1, const ImColor color2, float speed1, float speed2, int mode);
|
||||
CIMSPINNER_API void SpinnerIncDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerIncDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
|
||||
CIMSPINNER_API void SpinnerIncFullDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerIncFullDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
|
||||
CIMSPINNER_API void SpinnerFadeBars(const char *label, float w);
|
||||
CIMSPINNER_API void SpinnerFadeBarsEx(const char *label, float w,const ImColor color, float speed, size_t bars, bool scale);
|
||||
CIMSPINNER_API void SpinnerFadeTris(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerFadeTrisEx(const char *label, float radius,const ImColor color, float speed, size_t dim, bool scale, int mode);
|
||||
CIMSPINNER_API void SpinnerBarsRotateFade(const char *label, float rmin, float rmax , float thickness);
|
||||
CIMSPINNER_API void SpinnerBarsRotateFadeEx(const char *label, float rmin, float rmax , float thickness,const ImColor color, float speed, size_t bars);
|
||||
CIMSPINNER_API void SpinnerBarsScaleMiddle(const char *label, float w);
|
||||
CIMSPINNER_API void SpinnerBarsScaleMiddleEx(const char *label, float w,const ImColor color, float speed, size_t bars);
|
||||
CIMSPINNER_API void SpinnerAngTwin(const char *label, float radius1, float radius2, float thickness);
|
||||
CIMSPINNER_API void SpinnerAngTwinEx(const char *label, float radius1, float radius2, float thickness,const ImColor color, const ImColor bg, float speed, float angle, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerArcRotation(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerArcRotationEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerArcFade(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerArcFadeEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerSimpleArcFade(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSimpleArcFadeEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSquareStrokeFade(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSquareStrokeFadeEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerAsciiSymbolPoints(const char *label, const char* text, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerAsciiSymbolPointsEx(const char *label, const char* text, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerTextFading(const char *label, const char* text, float radius, float fsize);
|
||||
CIMSPINNER_API void SpinnerTextFadingEx(const char *label, const char* text, float radius, float fsize,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSevenSegments(const char *label, const char* text, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSevenSegmentsEx(const char *label, const char* text, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSquareStrokeFill(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSquareStrokeFillEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSquareStrokeLoading(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSquareStrokeLoadingEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSquareLoading(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSquareLoadingEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerFilledArcFade(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerFilledArcFadeEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerPointsRoller(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPointsRollerEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t points, int circles, float rspeed);
|
||||
CIMSPINNER_API void SpinnerPointsArcBounce(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPointsArcBounceEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t points, int circles, float rspeed);
|
||||
CIMSPINNER_API void SpinnerFilledArcColor(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerFilledArcColorEx(const char *label, float radius,const ImColor color, const ImColor bg, float speed, size_t arcs);
|
||||
CIMSPINNER_API void SpinnerFilledArcRing(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerFilledArcRingEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t arcs);
|
||||
CIMSPINNER_API void SpinnerArcWedges(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerArcWedgesEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerTwinBall(const char *label, float radius1, float radius2, float thickness, float b_thickness);
|
||||
CIMSPINNER_API void SpinnerTwinBallEx(const char *label, float radius1, float radius2, float thickness, float b_thickness,const ImColor ball, const ImColor bg, float speed, size_t balls, int mode);
|
||||
CIMSPINNER_API void SpinnerSolarBalls(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSolarBallsEx(const char *label, float radius, float thickness,const ImColor ball, const ImColor bg, float speed, size_t balls);
|
||||
CIMSPINNER_API void SpinnerSolarScaleBalls(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSolarScaleBallsEx(const char *label, float radius, float thickness,const ImColor ball, float speed, size_t balls);
|
||||
CIMSPINNER_API void SpinnerSolarArcs(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSolarArcsEx(const char *label, float radius, float thickness,const ImColor ball, const ImColor bg, float speed, size_t balls);
|
||||
CIMSPINNER_API void SpinnerMovingArcs(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerMovingArcsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs);
|
||||
CIMSPINNER_API void SpinnerRainbowCircle(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRainbowCircleEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, float mode);
|
||||
CIMSPINNER_API void SpinnerBounceBall(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerBounceBallEx(const char *label, float radius, float thickness,const ImColor color, float speed, int dots, bool shadow);
|
||||
CIMSPINNER_API void SpinnerPulsarBall(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPulsarBallEx(const char *label, float radius, float thickness,const ImColor color, float speed, bool shadow, int mode);
|
||||
CIMSPINNER_API void SpinnerIncScaleDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerIncScaleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots, float angle, int mode);
|
||||
CIMSPINNER_API void SpinnerSomeScaleDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSomeScaleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots, int mode);
|
||||
CIMSPINNER_API void SpinnerAngTriple(const char *label, float radius1, float radius2, float radius3, float thickness);
|
||||
CIMSPINNER_API void SpinnerAngTripleEx(const char *label, float radius1, float radius2, float radius3, float thickness,const ImColor c1, const ImColor c2, const ImColor c3, float speed, float angle);
|
||||
CIMSPINNER_API void SpinnerAngEclipse(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerAngEclipseEx(const char *label, float radius, float thickness,const ImColor color, float speed, float angle);
|
||||
CIMSPINNER_API void SpinnerIngYang(const char *label, float radius, float thickness, bool reverse, float yang_detlta_r);
|
||||
CIMSPINNER_API void SpinnerIngYangEx(const char *label, float radius, float thickness, bool reverse, float yang_detlta_r,const ImColor colorI, const ImColor colorY, float speed, float angle, int mode);
|
||||
CIMSPINNER_API void SpinnerGooeyBalls(const char *label, float radius, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerGooeyBallsEx(const char *label, float radius, const ImColor color, float speed,int mode);
|
||||
CIMSPINNER_API void SpinnerDotsLoading(const char *label, float radius, float thickness, const ImColor color, const ImColor bg, float speed);
|
||||
CIMSPINNER_API void SpinnerRotateGooeyBalls(const char *label, float radius, float thickness, const ImColor color, float speed, int balls);
|
||||
CIMSPINNER_API void SpinnerRotateGooeyBallsEx(const char *label, float radius, float thickness, const ImColor color, float speed, int balls,int mode);
|
||||
CIMSPINNER_API void SpinnerHerbertBalls(const char *label, float radius, float thickness, const ImColor color, float speed, int balls);
|
||||
CIMSPINNER_API void SpinnerHerbertBalls3D(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerRotateTriangles(const char *label, float radius, float thickness, const ImColor color, float speed, int tris);
|
||||
CIMSPINNER_API void SpinnerRotateTrianglesEx(const char *label, float radius, float thickness, const ImColor color, float speed, int tris,int mode);
|
||||
CIMSPINNER_API void SpinnerRotateShapes(const char *label, float radius, float thickness, const ImColor color, float speed, int shapes, int pnt);
|
||||
CIMSPINNER_API void SpinnerSinSquares(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSinSquaresEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
|
||||
CIMSPINNER_API void SpinnerMoonLine(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerMoonLineEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle);
|
||||
CIMSPINNER_API void SpinnerCircleDrop(const char *label, float radius, float thickness, float thickness_drop);
|
||||
CIMSPINNER_API void SpinnerCircleDropEx(const char *label, float radius, float thickness, float thickness_drop,const ImColor color, const ImColor bg, float speed, float angle);
|
||||
CIMSPINNER_API void SpinnerSurroundedIndicator(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSurroundedIndicatorEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed);
|
||||
CIMSPINNER_API void SpinnerWifiIndicator(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerWifiIndicatorEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float cangle, int dots);
|
||||
CIMSPINNER_API void SpinnerTrianglesSelector(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerTrianglesSelectorEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t bars);
|
||||
typedef ImColor LeafColor(int);
|
||||
CIMSPINNER_API void SpinnerCamera(const char *label, float radius, float thickness, LeafColor *leaf_color);
|
||||
CIMSPINNER_API void SpinnerCameraEx(const char *label, float radius, float thickness, LeafColor *leaf_color,float speed, size_t bars, int mode);
|
||||
CIMSPINNER_API void SpinnerFlowingGradient(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerFlowingGradientEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle);
|
||||
CIMSPINNER_API void SpinnerRotateSegments(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRotateSegmentsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, size_t layers, int mode);
|
||||
CIMSPINNER_API void SpinnerLemniscate(const char* label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerLemniscateEx(const char* label, float radius, float thickness,const ImColor color, float speed, float angle);
|
||||
CIMSPINNER_API void SpinnerRotateGear(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRotateGearEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t pins);
|
||||
CIMSPINNER_API void SpinnerRotateWheel(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRotateWheelEx(const char *label, float radius, float thickness,const ImColor bg_color, const ImColor color, float speed, size_t pins);
|
||||
CIMSPINNER_API void SpinnerAtom(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerAtomEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
|
||||
CIMSPINNER_API void SpinnerPatternRings(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPatternRingsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
|
||||
CIMSPINNER_API void SpinnerPatternEclipse(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPatternEclipseEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses, float delta_a, float delta_y);
|
||||
CIMSPINNER_API void SpinnerPatternSphere(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPatternSphereEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
|
||||
CIMSPINNER_API void SpinnerRingSynchronous(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRingSynchronousEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
|
||||
CIMSPINNER_API void SpinnerRingWatermarks(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRingWatermarksEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
|
||||
CIMSPINNER_API void SpinnerRotatedAtom(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRotatedAtomEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses, int mode);
|
||||
CIMSPINNER_API void SpinnerRainbowBalls(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerRainbowBallsEx(const char *label, float radius, float thickness, const ImColor color, float speed,int balls, int mode, int rings, int mx);
|
||||
CIMSPINNER_API void SpinnerRainbowShot(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerRainbowShotEx(const char *label, float radius, float thickness, const ImColor color, float speed,int balls, int mode);
|
||||
CIMSPINNER_API void SpinnerSpiral(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSpiralEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs);
|
||||
CIMSPINNER_API void SpinnerSpiralEye(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSpiralEyeEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerBarChartSine(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerBarChartSineEx(const char *label, float radius, float thickness, const ImColor color, float speed,int bars, int mode);
|
||||
CIMSPINNER_API void SpinnerBarChartAdvSine(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerBarChartAdvSineEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
|
||||
CIMSPINNER_API void SpinnerBarChartAdvSineFade(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerBarChartAdvSineFadeEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
|
||||
CIMSPINNER_API void SpinnerBarChartRainbow(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerBarChartRainbowEx(const char *label, float radius, float thickness, const ImColor color, float speed,int bars, int mode);
|
||||
CIMSPINNER_API void SpinnerBlocks(const char *label, float radius, float thickness, const ImColor bg, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerTwinBlocks(const char *label, float radius, float thickness, const ImColor bg, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSquareRandomDots(const char *label, float radius, float thickness, const ImColor bg, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerScaleBlocks(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerScaleBlocksEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
|
||||
CIMSPINNER_API void SpinnerScaleSquares(const char *label, float radius, float thikness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerSquishSquare(const char *label, float radius, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerFluid(const char *label, float radius, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerFluidEx(const char *label, float radius, const ImColor color, float speed,int bars);
|
||||
CIMSPINNER_API void SpinnerFluidPoints(const char *label, float radius, float thickness, const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerFluidPointsEx(const char *label, float radius, float thickness, const ImColor color, float speed,size_t dots, float delta);
|
||||
CIMSPINNER_API void SpinnerArcPolarFade(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerArcPolarFadeEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerArcPolarRadius(const char *label, float radius);
|
||||
CIMSPINNER_API void SpinnerArcPolarRadiusEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerCaleidoscope(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerCaleidoscopeEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, int mode);
|
||||
CIMSPINNER_API void SpinnerHboDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerHboDotsEx(const char *label, float radius, float thickness,const ImColor color, float minfade, float ryk, float speed, size_t dots, int mode);
|
||||
CIMSPINNER_API void SpinnerMoonDots(const char *label, float radius, float thickness, const ImColor first, const ImColor second);
|
||||
CIMSPINNER_API void SpinnerMoonDotsEx(const char *label, float radius, float thickness, const ImColor first, const ImColor second,float speed);
|
||||
CIMSPINNER_API void SpinnerTwinHboDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerTwinHboDotsEx(const char *label, float radius, float thickness,const ImColor color, float minfade, float ryk, float speed, size_t dots, float delta);
|
||||
CIMSPINNER_API void SpinnerThreeDotsStar(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerThreeDotsStarEx(const char *label, float radius, float thickness,const ImColor color, float minfade, float ryk, float speed, float delta);
|
||||
CIMSPINNER_API void SpinnerSineArcs(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSineArcsEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerTrianglesShift(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerTrianglesShiftEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t bars);
|
||||
CIMSPINNER_API void SpinnerPointsShift(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerPointsShiftEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t bars);
|
||||
CIMSPINNER_API void SpinnerSwingDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSwingDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed);
|
||||
CIMSPINNER_API void SpinnerCircularPoints(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerCircularPointsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lines);
|
||||
CIMSPINNER_API void SpinnerCurvedCircle(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerCurvedCircleEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t circles);
|
||||
CIMSPINNER_API void SpinnerModCircle(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerModCircleEx(const char *label, float radius, float thickness,const ImColor color, float ang_min, float ang_max, float speed);
|
||||
CIMSPINNER_API void SpinnerDnaDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerDnaDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt, float delta, bool mode);
|
||||
CIMSPINNER_API void Spinner3SmuggleDots(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void Spinner3SmuggleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt, float delta, bool mode);
|
||||
CIMSPINNER_API void SpinnerRotateSegmentsPulsar(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerRotateSegmentsPulsarEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, size_t layers);
|
||||
CIMSPINNER_API void SpinnerSplineAng(const char *label, float radius, float thickness);
|
||||
CIMSPINNER_API void SpinnerSplineAngEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle, int mode);
|
||||
|
||||
CIMSPINNER_API void demoSpinners();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define SPINNER_RAINBOWMIX
|
||||
#define SPINNER_DNADOTS
|
||||
#define SPINNER_ANG8
|
||||
#define SPINNER_CLOCK
|
||||
#define SPINNER_PULSAR
|
||||
#define SPINNER_DOTSTOBAR
|
||||
#define SPINNER_ATOM
|
||||
#define SPINNER_BARCHARTRAINBOW
|
||||
#define SPINNER_SWINGDOTS
|
||||
Vendored
+261
-1649
File diff suppressed because it is too large
Load Diff
Generated
+9
-9
@@ -5,11 +5,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1778716662,
|
||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
||||
"lastModified": 1787559586,
|
||||
"narHash": "sha256-onL0VLf9vPllmT0H/OlURIU5r5t5WIEl7t4tVNKT0Nw=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
||||
"rev": "9d0d87172c374f89da73c1cfe6d81ae62feac1f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1779560665,
|
||||
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
|
||||
"lastModified": 1787498568,
|
||||
"narHash": "sha256-9i/VTdusq/+NM/tz+J1Re+ojkMB8MBf0QshnYfzHz30=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
|
||||
"rev": "56c02bc00adcf003215cc4bd996d6efaf4cff188",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,11 +36,11 @@
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1777168982,
|
||||
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
|
||||
"lastModified": 1785031560,
|
||||
"narHash": "sha256-OmshNvn2vupOFpYinLUu+1Dnpu4n7Q5N3ggGVNHpkUI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
|
||||
"rev": "0e79af5e3d4dcfcd676ab5ba3f95d2e3352e078c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
# Keep in sync with CMakeLists.txt monado rev
|
||||
rev = lib.strings.trim (builtins.readFile ./monado-rev);
|
||||
# Nix will output the correct hash when it doesn't match
|
||||
hash = "sha256-SzuCQ1uX15vFGwGt3gswlVF2Su8sIND4R3tsTJ4T1LY=";
|
||||
hash = "sha256-3+bdxyXHuaweT/K+Jwh428XNMuZUd1tL2bdFBRIZ/Po=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# kate: syntax yaml
|
||||
id: io.github.wivrn.wivrn
|
||||
runtime: org.kde.Platform
|
||||
runtime-version: '6.10'
|
||||
runtime-version: '6.11'
|
||||
sdk: org.kde.Sdk
|
||||
sdk-extensions:
|
||||
- org.freedesktop.Sdk.Extension.rust-stable
|
||||
@@ -102,8 +102,11 @@ modules:
|
||||
|
||||
- name: toolchain
|
||||
sources:
|
||||
# mirror-urls are fallbacks, used when the primary url fails.
|
||||
- type: file
|
||||
url: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.177.tar.xz
|
||||
mirror-urls:
|
||||
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.15.177.tar.xz
|
||||
sha256: ea9eb8088d4231f8a01b191ceef5f4d92238f6c7519f6fbcb57e448ee9e0a6e0
|
||||
- type: file
|
||||
url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.xz
|
||||
@@ -113,34 +116,63 @@ modules:
|
||||
sha256: 8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
|
||||
- https://mirrors.kernel.org/gnu/gmp/gmp-6.3.0.tar.xz
|
||||
sha256: a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
|
||||
- type: file
|
||||
url: https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.xz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz
|
||||
- https://mirrors.kernel.org/gnu/mpfr/mpfr-4.2.1.tar.xz
|
||||
sha256: 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
|
||||
- type: file
|
||||
dest-filename: isl-0.26.tar.xz
|
||||
url: https://sourceforge.net/projects/libisl/files/isl-0.26.tar.xz/download
|
||||
mirror-urls:
|
||||
- https://libisl.sourceforge.io/isl-0.26.tar.xz
|
||||
sha256: a0b5cb06d24f9fa9e77b55fabbe9a3c94a336190345c2555f9915bb38e976504
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
|
||||
- https://mirrors.kernel.org/gnu/mpc/mpc-1.3.1.tar.gz
|
||||
sha256: ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
|
||||
- type: file
|
||||
url: https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/ncurses/ncurses-6.4.tar.gz
|
||||
- https://mirrors.kernel.org/gnu/ncurses/ncurses-6.4.tar.gz
|
||||
sha256: 6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz
|
||||
- https://mirrors.kernel.org/gnu/libiconv/libiconv-1.16.tar.gz
|
||||
sha256: e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/gettext/gettext-0.23.1.tar.xz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/gettext/gettext-0.23.1.tar.xz
|
||||
- https://mirrors.kernel.org/gnu/gettext/gettext-0.23.1.tar.xz
|
||||
sha256: c1f97a72a7385b7e71dd07b5fea6cdaf12c9b88b564976b23bd8c11857af2970
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz
|
||||
- https://mirrors.kernel.org/gnu/binutils/binutils-2.43.1.tar.xz
|
||||
sha256: 13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz
|
||||
- https://mirrors.kernel.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz
|
||||
sha256: a6e21868ead545cf87f0c01f84276e4b5281d672098591c1c896241f09363478
|
||||
- type: file
|
||||
url: https://ftpmirror.gnu.org/gnu/glibc/glibc-2.35.tar.xz
|
||||
mirror-urls:
|
||||
- https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.xz
|
||||
- https://mirrors.kernel.org/gnu/glibc/glibc-2.35.tar.xz
|
||||
sha256: 5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e
|
||||
- type: file
|
||||
path: ct-ng-x86_64.config
|
||||
|
||||
@@ -0,0 +1,967 @@
|
||||
# Azerbaijani translation for WiVRn-dashboard.
|
||||
# Copyright (C) 2026 WiVRn-dashboard's authors.
|
||||
# This file is distributed under the same license as the WiVRn-dashboard package.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-08-30 04:24+0800\n"
|
||||
"PO-Revision-Date: 2026-09-09 00:00+0400\n"
|
||||
"Last-Translator: Jamal Kamaladdin <jamalkamaladdin@gmail.com>\n"
|
||||
"Language-Team: Azerbaijani <>\n"
|
||||
"Language: az\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:133
|
||||
#, kde-format
|
||||
msgid "Cannot save APK file: %1"
|
||||
msgstr "APK faylını yadda saxlamaq mümkün deyil: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:167
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB / %2 MB"
|
||||
msgstr "APK endirilir: %1 MB / %2 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:169
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB"
|
||||
msgstr "APK endirilir: %1 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:178
|
||||
#, kde-format
|
||||
msgid "Download cancelled"
|
||||
msgstr "Endirmə ləğv edildi"
|
||||
|
||||
#: dashboard/apk_installer.cpp:194
|
||||
#, kde-format
|
||||
msgid "Cannot download APK: %1"
|
||||
msgstr "APK endirmək mümkün deyil: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:217
|
||||
#, kde-format
|
||||
msgid "Installing APK"
|
||||
msgstr "APK quraşdırılır"
|
||||
|
||||
#: dashboard/apk_installer.cpp:221
|
||||
#, kde-format
|
||||
msgid "adb failed to start: %1"
|
||||
msgstr "adb başladıla bilmədi: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:231
|
||||
#, kde-format
|
||||
msgid "adb exited abnormally: %1"
|
||||
msgstr "adb gözlənilmədən dayandı: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:239
|
||||
#, kde-format
|
||||
msgid "The 'adb install' command failed: exit code %1"
|
||||
msgstr "'adb install' əmri uğursuz oldu: çıxış kodu %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:244
|
||||
#, kde-format
|
||||
msgid "Installation successful"
|
||||
msgstr "Quraşdırma uğurla tamamlandı"
|
||||
|
||||
#: dashboard/main.cpp:26
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:28
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "WiVRn serveri"
|
||||
|
||||
#: dashboard/main.cpp:30
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 WiVRn tərtibat komandası"
|
||||
|
||||
#: dashboard/main.cpp:40
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:41
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "OpenXR icra mühiti"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Geri qayıt"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
msgid "Install the WiVRn app on your headset"
|
||||
msgstr "WiVRn tətbiqini qulaqlığınıza quraşdırın"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:41 dashboard/qml/WizardPage.qml:157
|
||||
#: dashboard/qml/WizardPage.qml:192
|
||||
#, kde-format
|
||||
msgid "Checking latest release..."
|
||||
msgstr "Son buraxılış yoxlanılır..."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
|
||||
#, kde-format
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "Bu versiya üçün APK yoxdur"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
|
||||
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADB quraşdırılmayıb"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:47
|
||||
#, kde-format
|
||||
msgid "Connect a headset and make sure developer mode is enabled"
|
||||
msgstr "Qulaqlığı qoşun və tərtibatçı rejiminin aktivləşdirildiyinə əmin olun"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentation</a> to build your own "
|
||||
"client."
|
||||
msgstr "Öz klientinizi yığmaq üçün <a href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">sənədlərdəki</a> təlimatlara əməl edin."
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
msgstr "Qulaqlığınızı seçin"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:46
|
||||
#, kde-format
|
||||
msgid "WiVRn is already installed on this device"
|
||||
msgstr "WiVRn artıq bu cihazda quraşdırılıb"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:54
|
||||
#, kde-format
|
||||
msgid "Reinstall WiVRn"
|
||||
msgstr "WiVRn-i yenidən quraşdır"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:54
|
||||
#, kde-format
|
||||
msgid "Install WiVRn"
|
||||
msgstr "WiVRn-i quraşdır"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Qulaqlıqlar"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:29
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 second ago"
|
||||
msgid_plural "Last connection: %1 seconds ago"
|
||||
msgstr[0] "Son əlaqə: %1 saniyə əvvəl"
|
||||
msgstr[1] "Son əlaqə: %1 saniyə əvvəl"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:31
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 minute ago"
|
||||
msgid_plural "Last connection: %1 minutes ago"
|
||||
msgstr[0] "Son əlaqə: %1 dəqiqə əvvəl"
|
||||
msgstr[1] "Son əlaqə: %1 dəqiqə əvvəl"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 hour ago"
|
||||
msgid_plural "Last connection: %1 hours ago"
|
||||
msgstr[0] "Son əlaqə: %1 saat əvvəl"
|
||||
msgstr[1] "Son əlaqə: %1 saat əvvəl"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:35
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 day ago"
|
||||
msgid_plural "Last connection: %1 days ago"
|
||||
msgstr[0] "Son əlaqə: %1 gün əvvəl"
|
||||
msgstr[1] "Son əlaqə: %1 gün əvvəl"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:40
|
||||
#, kde-format
|
||||
msgid "Rename headset"
|
||||
msgstr "Qulaqlığın adını dəyiş"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:48 dashboard/qml/HeadsetsPage.qml:116
|
||||
#, kde-format
|
||||
msgid "Rename"
|
||||
msgstr "Adını dəyiş"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
|
||||
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
|
||||
#: dashboard/qml/WizardPage.qml:376
|
||||
#, kde-format
|
||||
msgid "Cancel"
|
||||
msgstr "Ləğv et"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:64
|
||||
#, kde-format
|
||||
msgid "Headset name…"
|
||||
msgstr "Qulaqlığın adı…"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:128
|
||||
#, kde-format
|
||||
msgid "Remove"
|
||||
msgstr "Çıxar"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:143
|
||||
#, kde-format
|
||||
msgid "Pairing enabled, PIN: %1"
|
||||
msgstr "Qoşulma aktivdir, PIN: %1"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:148 dashboard/qml/TroubleshootPage.qml:50
|
||||
#, kde-format
|
||||
msgid "Disable pairing"
|
||||
msgstr "Qoşulmanı söndür"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:166
|
||||
#, kde-format
|
||||
msgid "Start the WiVRn app on your headset and use the PIN: %1"
|
||||
msgstr "Qulaqlığınızda WiVRn tətbiqini başladın və bu PIN-dən istifadə edin: %1"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:166
|
||||
#, kde-format
|
||||
msgid "Enable pairing to allow your headset to connect to this computer"
|
||||
msgstr "Qulaqlığınızın bu kompüterlə əlaqə qurmasına icazə vermək üçün qoşulmanı aktivləşdirin"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:45
|
||||
#, kde-format
|
||||
msgid "Enable pairing"
|
||||
msgstr "Qoşulmanı aktivləşdir"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:191
|
||||
#, kde-format
|
||||
msgid "Pair a new headset"
|
||||
msgstr "Yeni qulaqlıq qoş"
|
||||
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:12
|
||||
#, kde-format
|
||||
msgid "Headset statistics"
|
||||
msgstr "Qulaqlıq statistikası"
|
||||
|
||||
#: dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "WiVRn idarə paneli"
|
||||
|
||||
#: dashboard/qml/Main.qml:51
|
||||
#, kde-format
|
||||
msgid "Quit WiVRn"
|
||||
msgstr "WiVRn-dən çıx"
|
||||
|
||||
#: dashboard/qml/Main.qml:52
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The WiVRn server is active.\n"
|
||||
"Closing the window will terminate it."
|
||||
msgstr "WiVRn serveri aktivdir.\nPəncərəni bağlamaq onu dayandıracaq."
|
||||
|
||||
#: dashboard/qml/Main.qml:142
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahi xidməti quraşdırılmayıb"
|
||||
|
||||
#: dashboard/qml/Main.qml:150
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi xidməti başladılmayıb"
|
||||
|
||||
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:231
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Düzəlt"
|
||||
|
||||
#: dashboard/qml/Main.qml:165
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "Təhlükəsizlik divarı 9757 portuna icazə verməyə bilər"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr "NVIDIA qrafik prosessorları üçün ən azı 565.77 versiyalı sürücü tələb olunur, cari versiya %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:185
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Ətraflı məlumat"
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
|
||||
msgstr "Vulkan sürücüləri tapılmır, \"flatpak update\" əmrini icra etmək lazım gələ bilər"
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found"
|
||||
msgstr "Vulkan sürücüləri tapılmır"
|
||||
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
|
||||
msgstr "AMD qrafik prosessorları üçün Mesa (radv) sürücüsündən istifadə edin\nvaapi ilə aparat kodlaşdırması AMDVLK və AMDGPU-PRO ilə işləmir"
|
||||
|
||||
#: dashboard/qml/Main.qml:209
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
"Install xrizer or OpenComposite."
|
||||
msgstr "OpenVR uyğunluğu aşkarlanmadı, Steam oyunları VR-ı yükləyə bilməyəcək.\nxrizer və ya OpenComposite quraşdırın."
|
||||
|
||||
#: dashboard/qml/Main.qml:217
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "Steam snap kimi quraşdırılıb. Snap paketləri WiVRn ilə uyğun deyil."
|
||||
|
||||
#: dashboard/qml/Main.qml:225
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr "Steam flatpak kimi quraşdırılıb, lakin kifayət qədər icazəsi yoxdur."
|
||||
|
||||
#: dashboard/qml/Main.qml:240
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Konfiqurasiya dəyişikliklərinin qüvvəyə minməsi üçün serveri yenidən başladın"
|
||||
|
||||
#: dashboard/qml/Main.qml:246
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "İndi yenidən başlat"
|
||||
|
||||
#: dashboard/qml/Main.qml:271
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "Server başladıla bilmədi"
|
||||
|
||||
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Server jurnallarını aç"
|
||||
|
||||
#: dashboard/qml/Main.qml:303
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "Serverin vəziyyəti"
|
||||
|
||||
#: dashboard/qml/Main.qml:309
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "İşləyir"
|
||||
|
||||
#: dashboard/qml/Main.qml:322
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Qoşulma"
|
||||
|
||||
#: dashboard/qml/Main.qml:342
|
||||
#, kde-format
|
||||
msgid "Headset status"
|
||||
msgstr "Qulaqlığın vəziyyəti"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#, kde-format
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "Qulaqlıq"
|
||||
|
||||
#: dashboard/qml/Main.qml:352
|
||||
#, kde-format
|
||||
msgid "Not connected"
|
||||
msgstr "Əlaqə qurulmayıb"
|
||||
|
||||
#: dashboard/qml/Main.qml:356
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Əlaqəni kəs"
|
||||
|
||||
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
|
||||
#: dashboard/qml/Main.qml:380
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:366
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "Əlaqə qur (naqillə)"
|
||||
|
||||
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "Heç bir qulaqlıq qoşulmayıb və ya qulaqlığınız tərtibatçı rejimində deyil"
|
||||
|
||||
#: dashboard/qml/Main.qml:404
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Steam məlumatları"
|
||||
|
||||
#: dashboard/qml/Main.qml:420
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Quraşdırma köməkçisi"
|
||||
|
||||
#: dashboard/qml/Main.qml:426
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Tətbiqi quraşdır"
|
||||
|
||||
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Parametrlər"
|
||||
|
||||
#: dashboard/qml/Main.qml:451
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "Haqqında"
|
||||
|
||||
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Problemləri həll et"
|
||||
|
||||
#: dashboard/qml/Main.qml:463
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "Versiya %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:12
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
msgid "None"
|
||||
msgstr "Yoxdur"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:18
|
||||
#, kde-format
|
||||
msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "Fərdi"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:61
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
msgstr "Gözdən keçir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:28
|
||||
#, kde-format
|
||||
msgid "The current encoder configuration is not supported"
|
||||
msgstr "Cari kodlayıcı konfiqurasiyası dəstəklənmir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Reset"
|
||||
msgstr "Sıfırla"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:40
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "Kodlayıcı:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:46
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "Avtomatik"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:50
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "nvenc (NVIDIA qrafik prosessorları)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:54
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "vaapi (AMD və Intel qrafik prosessorları)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:58
|
||||
#, kde-format
|
||||
msgid "Vulkan (Any modern GPU)"
|
||||
msgstr "Vulkan (istənilən müasir qrafik prosessor)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:62
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (proqram vasitəsilə kodlaşdırma)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:79
|
||||
#, kde-format
|
||||
msgid "\"Auto\" will use hardware acceleration if it is available"
|
||||
msgstr "\"Avtomatik\" mövcud olduqda aparat sürətləndirilməsindən istifadə edəcək"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Autostart application:"
|
||||
msgstr "Avtomatik başladılacaq tətbiq:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:94
|
||||
#, kde-format
|
||||
msgid "Auto connect from USB"
|
||||
msgstr "USB ilə avtomatik əlaqə qur"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:102
|
||||
#, kde-format
|
||||
msgid "Advanced options"
|
||||
msgstr "Genişləndirilmiş seçimlər"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:108
|
||||
#, kde-format
|
||||
msgid "Check system configuration on start"
|
||||
msgstr "Başladıqda sistem konfiqurasiyasını yoxla"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:114
|
||||
#, kde-format
|
||||
msgid "Expose forwarded input devices via uinput"
|
||||
msgstr "Yönləndirilən giriş cihazlarını uinput vasitəsilə əlçatan et"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:117
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Replicate mouse, keyboard and gamepad connected to the headset as virtual "
|
||||
"devices on PC.\n"
|
||||
"Replicated devices will appear as if they were plugged to the PC, some keys "
|
||||
"may be reserved by the headset OS and not be available. Gamepad is also "
|
||||
"available without virtual devices for applications that access it through "
|
||||
"OpenXR."
|
||||
msgstr "Qulaqlığa qoşulmuş siçanı, klaviaturanı və oyun pultunu kompüterdə virtual cihazlar kimi təkrarlayın.\nTəkrarlanan cihazlar kompüterə qoşulmuş kimi görünəcək, bəzi düymələr qulaqlığın əməliyyat sistemi üçün ayrılmış ola və əlçatan olmaya bilər. Oyun pultuna OpenXR vasitəsilə müraciət edən tətbiqlər virtual cihazlar olmadan da ondan istifadə edə bilər."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "Sazlama pəncərəsini aktivləşdir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:129
|
||||
#, kde-format
|
||||
msgid "Enable SteamVR tracked devices support"
|
||||
msgstr "SteamVR ilə izlənən cihazların dəstəyini aktivləşdir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:132
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
"Requires SteamVR to be installed.\n"
|
||||
"Devices must be be powered on before connecting to WiVRn.\n"
|
||||
"An external tool such as motoc is needed for calibration."
|
||||
msgstr "Lighthouse əsaslı kontroller və izləyicilərdən istifadəyə imkan verir.\nSteamVR quraşdırılmalıdır.\nWiVRn ilə əlaqə qurmazdan əvvəl cihazlar yandırılmalıdır.\nKalibrləmə üçün motoc kimi xarici alət lazımdır."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "Clamp extrapolation for SteamVR tracked devices"
|
||||
msgstr "SteamVR ilə izlənən cihazlar üçün ekstrapolyasiyanı məhdudlaşdır"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:142
|
||||
#, kde-format
|
||||
msgid "SteamVR max pose extrapolation"
|
||||
msgstr "SteamVR üçün maksimum poza ekstrapolyasiyası"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:152
|
||||
#, kde-format
|
||||
msgctxt "value display for SteamVR max pose extrapolation"
|
||||
msgid "%1ms"
|
||||
msgid_plural "%1ms"
|
||||
msgstr[0] "%1ms"
|
||||
msgstr[1] "%1ms"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:157
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Maximum time in milliseconds that poses may be extrapolated ahead for "
|
||||
"SteamVR tracked devices. Tune this value if you experience jittery or wobbly "
|
||||
"tracking."
|
||||
msgstr "SteamVR ilə izlənən cihazların pozalarının irəliyə ekstrapolyasiya oluna biləcəyi maksimum müddət, millisaniyə ilə. İzləmə zamanı titrəmə və ya yırğalanma müşahidə edirsinizsə, bu dəyəri tənzimləyin."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:162
|
||||
#, kde-format
|
||||
msgid "SteamVR joystick deadzone"
|
||||
msgstr "SteamVR coystikinin ölü zonası"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:177
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Deadzone to apply to joysticks on lighthouse-tracked controllers, such as "
|
||||
"Index.\n"
|
||||
"For standalone controllers, deadzones may be adjusted via the headset's "
|
||||
"system settings."
|
||||
msgstr "Index kimi Lighthouse ilə izlənən kontrollerlərin coystiklərinə tətbiq olunan ölü zona.\nMüstəqil kontrollerlər üçün ölü zonalar qulaqlığın sistem parametrləri vasitəsilə tənzimlənə bilər."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:185
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Fərdi adb məkanı"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:196
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Adb məkanı:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Gözdən keçir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:215
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Standart"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:229
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Fərdi"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:234
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Deaktiv"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:250
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "OpenVR uyğunluq kitabxanası:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:280
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "bin/linux64/vrclient.so daxil edilmədən kitabxana yolu"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:285
|
||||
#, kde-format
|
||||
msgctxt "browse to choose the OpenVR compatibility to use"
|
||||
msgid "Browse"
|
||||
msgstr "Gözdən keçir"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:8
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For Steam games, right click on the game in Steam, go in Properties > "
|
||||
"General and paste this in \"Launch options\":"
|
||||
msgstr "Steam oyunları üçün Steam-də oyuna sağ klikləyin, Xüsusiyyətlər > Ümumi bölməsinə keçin və bunu \"Başlatma seçimləri\" sahəsinə yapışdırın:"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:20
|
||||
#, kde-format
|
||||
msgid "Paste this in the Steam launch options for the app you want to start"
|
||||
msgstr "Bunu başlatmaq istədiyiniz tətbiqin Steam başlatma seçimlərinə yapışdırın"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:26
|
||||
#, kde-format
|
||||
msgctxt "copy text to the clipboard"
|
||||
msgid "Copy"
|
||||
msgstr "Kopyala"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:30
|
||||
#, kde-format
|
||||
msgid "Copied Steam launch command"
|
||||
msgstr "Steam başlatma əmri kopyalandı"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:20
|
||||
#, kde-format
|
||||
msgid "I cannot find the WiVRn app on my headset"
|
||||
msgstr "Qulaqlığımda WiVRn tətbiqini tapa bilmirəm"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:353
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you installed WiVRn over USB on a Meta or Pico headset, the app is in the "
|
||||
"\"unknown sources\" section."
|
||||
msgstr "WiVRn-i Meta və ya Pico qulaqlığına USB ilə quraşdırmısınızsa, tətbiq \"naməlum mənbələr\" bölməsindədir."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:24
|
||||
#, kde-format
|
||||
msgid "I cannot see my computer in the WiVRn app"
|
||||
msgstr "WiVRn tətbiqində kompüterimi görə bilmirəm"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:25
|
||||
#, kde-format
|
||||
msgid "If you have a firewall, make sure that port 5353/UDP is open."
|
||||
msgstr "Təhlükəsizlik divarınız varsa, 5353/UDP portunun açıq olduğuna əmin olun."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:28
|
||||
#, kde-format
|
||||
msgid "Connecting remains stuck on \"Connection to ...\""
|
||||
msgstr "Əlaqə qurulması \"... ilə əlaqə\" mərhələsində ilişib qalır"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:29 dashboard/qml/TroubleshootPage.qml:33
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you have a firewall, make sure that port 9757 is open both for TCP and "
|
||||
"UDP."
|
||||
msgstr "Təhlükəsizlik divarınız varsa, 9757 portunun həm TCP, həm də UDP üçün açıq olduğuna əmin olun."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:32
|
||||
#, kde-format
|
||||
msgid "Connection fails with \"no route to host\""
|
||||
msgstr "Əlaqə \"no route to host\" xətası ilə uğursuz olur"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:36
|
||||
#, kde-format
|
||||
msgid "I have an \"Incompatible WiVRn server\" error on my headset"
|
||||
msgstr "Qulaqlığımda \"Uyğun olmayan WiVRn serveri\" xətası alıram"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>The version of the headset app and the server on your computer must match."
|
||||
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
|
||||
"server version is <b>%1</b></li></ul>"
|
||||
msgstr "<p>Qulaqlıq tətbiqinin və kompüterinizdəki serverin versiyaları uyğun olmalıdır.</p><ul><li>Qulaqlıq tətbiqinin versiyası \"Haqqında\" səhifəsindədir</li><li>Serverin versiyası <b>%1</b></li></ul>"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:40
|
||||
#, kde-format
|
||||
msgid "I have a \"Pairing is disabled\" error"
|
||||
msgstr "\"Qoşulma deaktivdir\" xətası alıram"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you have reinstalled the server or the client or if you want to connect "
|
||||
"another headset, you must enable pairing before connecting."
|
||||
msgstr "Serveri və ya klienti yenidən quraşdırmısınızsa və ya başqa qulaqlıqla əlaqə qurmaq istəyirsinizsə, əlaqə qurmazdan əvvəl qoşulmanı aktivləşdirməlisiniz."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Pairing is currently enabled with PIN %1."
|
||||
msgstr "Qoşulma hazırda %1 PIN-i ilə aktivdir."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Pairing is currently disabled."
|
||||
msgstr "Qoşulma hazırda deaktivdir."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:57
|
||||
#, kde-format
|
||||
msgid "I have no sound on my headset"
|
||||
msgstr "Qulaqlığımda səs yoxdur"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:406
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"When the headset is connected, select \"WiVRn\" as the default audio output "
|
||||
"device for applications to use it."
|
||||
msgstr "Qulaqlıqla əlaqə qurulduqda tətbiqlərin ondan istifadə etməsi üçün standart səs çıxış cihazı olaraq \"WiVRn\" seçin."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:61
|
||||
#, kde-format
|
||||
msgid "Some games fail to start or have input issues"
|
||||
msgstr "Bəzi oyunlar başlamır və ya giriş problemləri var"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:62
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
|
||||
"\">vronlinux DB</a> if there are known bugs or workarounds."
|
||||
msgstr "Oyuna xas problemlər üçün <a href=\"https://db.vronlinux.org/\">vronlinux verilənlər bazasında</a> məlum xətaların və ya müvəqqəti həll yollarının olub-olmadığını yoxlayın."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:79
|
||||
#, kde-format
|
||||
msgid "Report an issue"
|
||||
msgstr "Problem barədə bildir"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:84
|
||||
#, kde-format
|
||||
msgid "Ask on Discord"
|
||||
msgstr "Discord-da soruş"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Getting started"
|
||||
msgstr "İlk addımlar"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
|
||||
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:366
|
||||
#: dashboard/qml/WizardPage.qml:413 dashboard/qml/WizardPage.qml:450
|
||||
#, kde-format
|
||||
msgid "Back"
|
||||
msgstr "Geri qayıt"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:64
|
||||
#, kde-format
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "WiVRn-ə xoş gəlmisiniz"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:69
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This wizard will help you set up WiVRn on your headset and connect it to "
|
||||
"your computer."
|
||||
msgstr "Bu köməkçi WiVRn-i qulaqlığınızda qurmağa və kompüterinizlə əlaqə yaratmağa kömək edəcək."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
|
||||
#: dashboard/qml/WizardPage.qml:418 dashboard/qml/WizardPage.qml:455
|
||||
#, kde-format
|
||||
msgid "Next"
|
||||
msgstr "Davam et"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:112
|
||||
#, kde-format
|
||||
msgid "How to enable developer mode"
|
||||
msgstr "Tərtibatçı rejimini necə aktivləşdirməli"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:119
|
||||
#, kde-format
|
||||
msgid "Follow the manufacturer's instructions below:"
|
||||
msgstr "İstehsalçının aşağıdakı təlimatlarına əməl edin:"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:142
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"In order to use WiVRn, you will have to install the client app on your "
|
||||
"headset.\n"
|
||||
"You can either install it from the Meta store or directly over USB."
|
||||
msgstr "WiVRn-dən istifadə etmək üçün klient tətbiqini qulaqlığınıza quraşdırmalısınız.\nOnu Meta mağazasından və ya birbaşa USB ilə quraşdıra bilərsiniz."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:148
|
||||
#, kde-format
|
||||
msgid "Install from the Meta store"
|
||||
msgstr "Meta mağazasından quraşdır"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:152
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
|
||||
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
|
||||
msgstr "Quest 2, 3, 3S və Pro üçün tətbiqi <a href=\"https://www.meta.com/experiences/7959676140827574/\">Meta mağazasından</a> əldə edə bilərsiniz."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:164
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A newer release is available: %1 → %2, the client app on the Meta store may "
|
||||
"not be compatible."
|
||||
msgstr "Daha yeni buraxılış mövcuddur: %1 → %2, Meta mağazasındakı klient tətbiqi uyğun olmaya bilər."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:171
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This is a nightly build, the client app on the Meta store may not be "
|
||||
"compatible."
|
||||
msgstr "Bu, gecəlik yığımdır, Meta mağazasındakı klient tətbiqi uyğun olmaya bilər."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:181
|
||||
#, kde-format
|
||||
msgctxt "displayed between 'meta store' and 'install over USB' in the wizard"
|
||||
msgid "Or"
|
||||
msgstr "Və ya"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:187
|
||||
#, kde-format
|
||||
msgid "Install over USB"
|
||||
msgstr "USB ilə quraşdır"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:219
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>No headset detected. Make sure that:\n"
|
||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||
"href=\"#\">developer mode</a></li></ul></p>"
|
||||
msgstr "<p>Qulaqlıq aşkarlanmadı. Bunlara əmin olun:\n<ul><li>ADB udev qaydaları quraşdırılıb</li><li>Qulaqlıq <a href=\"#\">tərtibatçı rejimindədir</a></li></ul></p>"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:295
|
||||
#, kde-format
|
||||
msgid "Important information"
|
||||
msgstr "Vacib məlumat"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:301
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
|
||||
"running."
|
||||
msgstr "WiVRn SteamVR-ı tamamilə əvəz edir, WiVRn işləyərkən SteamVR-ı başlatmamalısınız."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:313
|
||||
#, kde-format
|
||||
msgid "Start the WiVRn app on your headset"
|
||||
msgstr "Qulaqlığınızda WiVRn tətbiqini başladın"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:319
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
|
||||
"and enter PIN \"%2\"."
|
||||
msgstr "Wi-Fi ilə əlaqə qurmaq üçün qulaqlığınızda WiVRn tətbiqini başladın, \"%1\" ilə əlaqə qurun və \"%2\" PIN-ini daxil edin."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:326
|
||||
#, kde-format
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "USB ilə əlaqə qurmaq üçün \"USB ilə əlaqə qur\" düyməsinə klikləyin."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "USB ilə əlaqə qur"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
msgstr "Problemlərin həlli"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:358
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If the server is not visible or the connection fails, check that ports 5353 "
|
||||
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
|
||||
msgstr "Server görünmürsə və ya əlaqə uğursuz olursa, təhlükəsizlik divarınızda 5353 (UDP) və 9757 (TCP və UDP) portlarının açıq olduğunu yoxlayın."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:371
|
||||
#, kde-format
|
||||
msgid "Skip"
|
||||
msgstr "Ötür"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:391
|
||||
#, kde-format
|
||||
msgid "Connection established"
|
||||
msgstr "Əlaqə quruldu"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:396
|
||||
#, kde-format
|
||||
msgid "Your headset is now connected."
|
||||
msgstr "Qulaqlığınızla artıq əlaqə qurulub."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:443
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect another headset, make sure pairing is enabled in the dashboard "
|
||||
"before connecting."
|
||||
msgstr "Başqa qulaqlıqla əlaqə qurmaq üçün əvvəlcə idarə panelində qoşulmanın aktivləşdirildiyinə əmin olun."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:423 dashboard/qml/WizardPage.qml:460
|
||||
#, kde-format
|
||||
msgid "Finish"
|
||||
msgstr "Bitir"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:438
|
||||
#, kde-format
|
||||
msgid "Finished"
|
||||
msgstr "Tamamlandı"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:565
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:566
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
+1296
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-06-16 15:49+0200\n"
|
||||
"POT-Creation-Date: 2026-07-11 14:46+0200\n"
|
||||
"PO-Revision-Date: 2026-06-18 18:05+0200\n"
|
||||
"Last-Translator: Snowflakes <Snowflakes@gmx.at>\n"
|
||||
"Language-Team: German <>\n"
|
||||
@@ -128,8 +128,8 @@ msgstr "ADB ist nicht installiert"
|
||||
#, kde-format
|
||||
msgid "Connect a headset and make sure developer mode is enabled"
|
||||
msgstr ""
|
||||
"Verbinde ein Headset und stelle sicher, dass die Entwickleroptionen aktiviert "
|
||||
"sind"
|
||||
"Verbinde ein Headset und stelle sicher, dass die Entwickleroptionen "
|
||||
"aktiviert sind"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||
#, kde-format
|
||||
@@ -303,8 +303,8 @@ msgstr "Firewall blockiert möglicherweise Port 9757"
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr ""
|
||||
"NVIDIA-GPUs benötigen mindestens die Treiber-Version 565.77, "
|
||||
"jetzige Version ist %1"
|
||||
"NVIDIA-GPUs benötigen mindestens die Treiber-Version 565.77, jetzige Version "
|
||||
"ist %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:185
|
||||
#, kde-format
|
||||
@@ -315,8 +315,8 @@ msgstr "Mehr Infos"
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
|
||||
msgstr ""
|
||||
"Vulkan Treiber können nicht gefunden werden, möglicherweise muss "
|
||||
"\"Flatpak Update\" ausgeführt werden"
|
||||
"Vulkan Treiber können nicht gefunden werden, möglicherweise muss \"Flatpak "
|
||||
"Update\" ausgeführt werden"
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
@@ -338,8 +338,8 @@ msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
"Install xrizer or OpenComposite."
|
||||
msgstr ""
|
||||
"Keine Kompatibilität mit OpenVR gefunden, Steam Spiele werden nicht mit "
|
||||
"VR starten können.\n"
|
||||
"Keine Kompatibilität mit OpenVR gefunden, Steam Spiele werden nicht mit VR "
|
||||
"starten können.\n"
|
||||
"Installiere Xrizer oder OpenComposite"
|
||||
|
||||
#: dashboard/qml/Main.qml:217
|
||||
@@ -431,8 +431,8 @@ msgstr "Verbinden (Kabelgebunden)"
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr ""
|
||||
"Kein Headset ist verbunden oder die Entwickleroptionen im Headset "
|
||||
"sind deaktiviert"
|
||||
"Kein Headset ist verbunden oder die Entwickleroptionen im Headset sind "
|
||||
"deaktiviert"
|
||||
|
||||
#: dashboard/qml/Main.qml:404
|
||||
#, kde-format
|
||||
@@ -557,21 +557,19 @@ msgstr "Systemkonfigurationen beim Start überprüfen"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:114
|
||||
#, kde-format
|
||||
msgid "Forward keyboard & mouse from headset"
|
||||
msgstr "Tastatur- und Mauseingaben vom Headset weiterleiten"
|
||||
msgid "Expose forwarded input devices via uinput"
|
||||
msgstr ""
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:117
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Keyboard and mouse connected to the client will act as if connected to the "
|
||||
"server. Client OS may reserve specific keys and combinations, which cannot "
|
||||
"be forwarded."
|
||||
"Replicate mouse, keyboard and gamepad connected to the headset as virtual "
|
||||
"devices on PC.\n"
|
||||
"Replicated devices will appear as if they were plugged to the PC, some keys "
|
||||
"may be reserved by the headset OS and not be available. Gamepad is also "
|
||||
"available without virtual devices for applications that access it through "
|
||||
"OpenXR."
|
||||
msgstr ""
|
||||
"Tastaturen und Mäuse, die mit dem Client verbunden sind werden sich "
|
||||
"so verhalten, als ob sie mit dem Server verbunden wären. "
|
||||
"Das Betriebssystem des Clients behält sich möglicherweise "
|
||||
"bestimmte Tasten und Tastenkombinationen vor, welche "
|
||||
"nicht weitergeleitet werden können."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
#, kde-format
|
||||
@@ -593,8 +591,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Erlaubt die Nutzung von Basisstationen-basierten Controllern und Trackern.\n"
|
||||
"SteamVR muss installiert sein.\n"
|
||||
"Geräte müssen eingeschaltet sein bevor eine Verbindung mit WiVRn "
|
||||
"hergestellt wird.\n"
|
||||
"Geräte müssen eingeschaltet sein bevor eine Verbindung mit WiVRn hergestellt "
|
||||
"wird.\n"
|
||||
"Für die Kalibrierung wird ein externes Tool wie Motoc benötigt."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
@@ -641,7 +639,7 @@ msgstr "Bibliothekspfad, ohne bin/linux64/vrclient.so"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:240
|
||||
#, kde-format
|
||||
msgctxt "browse to choose the OpenVR compatility to use"
|
||||
msgctxt "browse to choose the OpenVR compatibility to use"
|
||||
msgid "Browse"
|
||||
msgstr "Durchsuchen"
|
||||
|
||||
@@ -651,8 +649,8 @@ msgid ""
|
||||
"For Steam games, right click on the game in Steam, go in Properties > "
|
||||
"General and paste this in \"Launch options\":"
|
||||
msgstr ""
|
||||
"Für Steam Spiele, klicke rechts auf das Spiel in Steam, gehe zu Einstellungen "
|
||||
">Allgemein und füge das Folgende in \"Startoptionen\" ein:"
|
||||
"Für Steam Spiele, klicke rechts auf das Spiel in Steam, gehe zu "
|
||||
"Einstellungen >Allgemein und füge das Folgende in \"Startoptionen\" ein:"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:20
|
||||
#, kde-format
|
||||
@@ -728,11 +726,9 @@ msgid ""
|
||||
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
|
||||
"server version is <b>%1</b></li></ul>"
|
||||
msgstr ""
|
||||
"<p>Die Version der Headset-App und des Servers auf dem Computer müssen gleich "
|
||||
"sein."
|
||||
"</p><ul><li>Die Version der Headset-App ist in der \"Über WiVRn\" "
|
||||
"Seite</li><li> "
|
||||
"Die Version des Servers ist <b>%1</b></li></ul>"
|
||||
"<p>Die Version der Headset-App und des Servers auf dem Computer müssen "
|
||||
"gleich sein.</p><ul><li>Die Version der Headset-App ist in der \"Über "
|
||||
"WiVRn\" Seite</li><li> Die Version des Servers ist <b>%1</b></li></ul>"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:40
|
||||
#, kde-format
|
||||
@@ -746,8 +742,8 @@ msgid ""
|
||||
"another headset, you must enable pairing before connecting."
|
||||
msgstr ""
|
||||
"Wenn der Server oder der Client neu installiert wurde, oder wenn ein anderes "
|
||||
"Headset verbunden werden soll, dann muss Koppeln vor dem Verbinden "
|
||||
"aktiviert werden."
|
||||
"Headset verbunden werden soll, dann muss Koppeln vor dem Verbinden aktiviert "
|
||||
"werden."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
@@ -770,9 +766,8 @@ msgid ""
|
||||
"When the headset is connected, select \"WiVRn\" as the default audio output "
|
||||
"device for applications to use it."
|
||||
msgstr ""
|
||||
"Wenn das Headset verbunden ist, dann wähle \"WiVRn\" als die "
|
||||
"Standard-Audioausgabe aus, damit Programme diese verwenden "
|
||||
"können."
|
||||
"Wenn das Headset verbunden ist, dann wähle \"WiVRn\" als die Standard-"
|
||||
"Audioausgabe aus, damit Programme diese verwenden können."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:61
|
||||
#, kde-format
|
||||
@@ -785,9 +780,9 @@ msgid ""
|
||||
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
|
||||
"\">vronlinux DB</a> if there are known bugs or workarounds."
|
||||
msgstr ""
|
||||
"Für Probleme mit einzelnen Spielen, gehe zu "
|
||||
"<a href=\"https://db.vronlinux.org/\">vronlinux DB</a>, um herauszufinden "
|
||||
"ob es bereits Bugs oder Workarounds gibt."
|
||||
"Für Probleme mit einzelnen Spielen, gehe zu <a href=\"https://"
|
||||
"db.vronlinux.org/\">vronlinux DB</a>, um herauszufinden ob es bereits Bugs "
|
||||
"oder Workarounds gibt."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:79
|
||||
#, kde-format
|
||||
@@ -822,8 +817,8 @@ msgid ""
|
||||
"This wizard will help you set up WiVRn on your headset and connect it to "
|
||||
"your computer."
|
||||
msgstr ""
|
||||
"Dieser Einrichtungsassistent hilft dir, um WiVRn auf diesem Computer "
|
||||
"und dem Headset einzurichten."
|
||||
"Dieser Einrichtungsassistent hilft dir, um WiVRn auf diesem Computer und dem "
|
||||
"Headset einzurichten."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
|
||||
#: dashboard/qml/WizardPage.qml:418 dashboard/qml/WizardPage.qml:455
|
||||
@@ -863,8 +858,8 @@ msgid ""
|
||||
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
|
||||
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
|
||||
msgstr ""
|
||||
"Für Quest 2, 3, 3S, und Pro, ist die App im <a href=\"https://www.meta.com/exp"
|
||||
"eriences/7959676140827574/\">Meta store</a> erhältlich."
|
||||
"Für Quest 2, 3, 3S, und Pro, ist die App im <a href=\"https://www.meta.com/"
|
||||
"experiences/7959676140827574/\">Meta store</a> erhältlich."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:164
|
||||
#, kde-format
|
||||
@@ -872,8 +867,8 @@ msgid ""
|
||||
"A newer release is available: %1 → %2, the client app on the Meta store may "
|
||||
"not be compatible."
|
||||
msgstr ""
|
||||
"Eine neue Version ist erhältlich: %1 → %2, die Client-App im Meta Store "
|
||||
"ist möglicherweise nicht kompatibel."
|
||||
"Eine neue Version ist erhältlich: %1 → %2, die Client-App im Meta Store ist "
|
||||
"möglicherweise nicht kompatibel."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:171
|
||||
#, kde-format
|
||||
@@ -881,8 +876,8 @@ msgid ""
|
||||
"This is a nightly build, the client app on the Meta store may not be "
|
||||
"compatible."
|
||||
msgstr ""
|
||||
"Dies ist ein nightly build, die Client-App im Meta Store ist "
|
||||
"möglicherweise nicht kompatibel."
|
||||
"Dies ist ein nightly build, die Client-App im Meta Store ist möglicherweise "
|
||||
"nicht kompatibel."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:181
|
||||
#, kde-format
|
||||
@@ -938,8 +933,7 @@ msgstr ""
|
||||
#, kde-format
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr ""
|
||||
"Um eine Verbindung über USB aufzubauen, klicke auf "
|
||||
"\"Per USB verbinden\"."
|
||||
"Um eine Verbindung über USB aufzubauen, klicke auf \"Per USB verbinden\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
@@ -982,8 +976,8 @@ msgid ""
|
||||
"To connect another headset, make sure pairing is enabled in the dashboard "
|
||||
"before connecting."
|
||||
msgstr ""
|
||||
"Um ein anderes Headset zu verbinden, stelle sicher, dass Koppeln im Dashboard "
|
||||
"aktiviert ist, bevor eine Verbindung aufgebaut wird."
|
||||
"Um ein anderes Headset zu verbinden, stelle sicher, dass Koppeln im "
|
||||
"Dashboard aktiviert ist, bevor eine Verbindung aufgebaut wird."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:423 dashboard/qml/WizardPage.qml:460
|
||||
#, kde-format
|
||||
@@ -1004,3 +998,18 @@ msgstr "Xrizer"
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "Forward keyboard & mouse from headset"
|
||||
#~ msgstr "Tastatur- und Mauseingaben vom Headset weiterleiten"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid ""
|
||||
#~ "Keyboard and mouse connected to the client will act as if connected to "
|
||||
#~ "the server. Client OS may reserve specific keys and combinations, which "
|
||||
#~ "cannot be forwarded."
|
||||
#~ msgstr ""
|
||||
#~ "Tastaturen und Mäuse, die mit dem Client verbunden sind werden sich so "
|
||||
#~ "verhalten, als ob sie mit dem Server verbunden wären. Das Betriebssystem "
|
||||
#~ "des Clients behält sich möglicherweise bestimmte Tasten und "
|
||||
#~ "Tastenkombinationen vor, welche nicht weitergeleitet werden können."
|
||||
|
||||
+1313
-569
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-07-08 19:10+0200\n"
|
||||
"POT-Creation-Date: 2026-08-29 22:24+0200\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:20+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -15,7 +15,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Qt Linguist 6.11.0\n"
|
||||
"X-Generator: Qt Linguist 6.11.1\n"
|
||||
"X-Language: es_ES\n"
|
||||
"X-Source-Language: en_US\n"
|
||||
|
||||
@@ -599,51 +599,98 @@ msgstr ""
|
||||
"Los dispositivos deben de estar encendidos antes de conectarte a WiVRn.\n"
|
||||
"Una herramienta externa como motoc será necesaria para la calibración."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "Clamp extrapolation for SteamVR tracked devices"
|
||||
msgstr "Limitar extrapolación para dispositivos seguidos por SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:142
|
||||
#, kde-format
|
||||
msgid "SteamVR max pose extrapolation"
|
||||
msgstr "Extrapolación máxima de pose de SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:152
|
||||
#, kde-format
|
||||
msgctxt "value display for SteamVR max pose extrapolation"
|
||||
msgid "%1ms"
|
||||
msgid_plural "%1ms"
|
||||
msgstr[0] "%1ms"
|
||||
msgstr[1] "%1ms"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:157
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Maximum time in milliseconds that poses may be extrapolated ahead for "
|
||||
"SteamVR tracked devices. Tune this value if you experience jittery or wobbly "
|
||||
"tracking."
|
||||
msgstr ""
|
||||
"Tiempo máximo en milisegundos en el cual las poses serán extropoladas de "
|
||||
"antes para dispositivos seguidos por SteamVR. Ajuste este valor si "
|
||||
"experimenta seguimiento errático."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:162
|
||||
#, kde-format
|
||||
msgid "SteamVR joystick deadzone"
|
||||
msgstr "Zona muerta del joystick de SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:177
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Deadzone to apply to joysticks on lighthouse-tracked controllers, such as "
|
||||
"Index.\n"
|
||||
"For standalone controllers, deadzones may be adjusted via the headset's "
|
||||
"system settings."
|
||||
msgstr ""
|
||||
"La zona muerta a aplicar para los joysticks de los mandos seguidos por "
|
||||
"estaciones base, como los del Index.\n"
|
||||
"Para mandos de visores standalone, la zona muerta se ajustaría en los "
|
||||
"ajustes del visor."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:185
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Ruta de adb personalizada"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:151
|
||||
#: dashboard/qml/SettingsPage.qml:196
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Ruta de adb:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Explorar"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#: dashboard/qml/SettingsPage.qml:215
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Por defecto"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:184
|
||||
#: dashboard/qml/SettingsPage.qml:229
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:189
|
||||
#: dashboard/qml/SettingsPage.qml:234
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Deshabilitado"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#: dashboard/qml/SettingsPage.qml:250
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "Librería de compatibilidad para OpenVR:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:235
|
||||
#: dashboard/qml/SettingsPage.qml:280
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "Ruta de librería, excluyendo bin/linux64/vrclient.so"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:240
|
||||
#: dashboard/qml/SettingsPage.qml:285
|
||||
#, kde-format
|
||||
msgctxt "browse to choose the OpenVR compatility to use"
|
||||
msgctxt "browse to choose the OpenVR compatibility to use"
|
||||
msgid "Browse"
|
||||
msgstr "Explorar"
|
||||
|
||||
|
||||
+1313
-566
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-07-09 21:07+0200\n"
|
||||
"PO-Revision-Date: 2026-07-09 21:11+0200\n"
|
||||
"POT-Creation-Date: 2026-08-29 22:40+0200\n"
|
||||
"PO-Revision-Date: 2026-08-29 22:49+0200\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
@@ -599,51 +599,98 @@ msgstr ""
|
||||
"WiVRn.\n"
|
||||
"Un utilitaire tiers tel que motoc est nécessaire pour la calibration."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "Clamp extrapolation for SteamVR tracked devices"
|
||||
msgstr "Limiter l'extrapolation des manettes"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:142
|
||||
#, kde-format
|
||||
msgid "SteamVR max pose extrapolation"
|
||||
msgstr "Durée maximale"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:152
|
||||
#, kde-format
|
||||
msgctxt "value display for SteamVR max pose extrapolation"
|
||||
msgid "%1ms"
|
||||
msgid_plural "%1ms"
|
||||
msgstr[0] "%1ms"
|
||||
msgstr[1] "%1ms"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:157
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Maximum time in milliseconds that poses may be extrapolated ahead for "
|
||||
"SteamVR tracked devices. Tune this value if you experience jittery or wobbly "
|
||||
"tracking."
|
||||
msgstr ""
|
||||
"Durée maximale en millisecondes pour l'extrapolation des positions des "
|
||||
"manettes suivies par SteamVR. Permet d'adapter entre un suivi trop mou ou "
|
||||
"trop bruité."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:162
|
||||
#, kde-format
|
||||
msgid "SteamVR joystick deadzone"
|
||||
msgstr "Zone morte sticks SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:177
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Deadzone to apply to joysticks on lighthouse-tracked controllers, such as "
|
||||
"Index.\n"
|
||||
"For standalone controllers, deadzones may be adjusted via the headset's "
|
||||
"system settings."
|
||||
msgstr ""
|
||||
"Zone morte pour les sticks sur les manettes Lighthouse comme le Valve "
|
||||
"Index.\n"
|
||||
"Pour les manettes associées au casque, les zones mortes se configurent via "
|
||||
"les paramètres du casque lui-même."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:185
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Spécifier l'emplacement d'adb"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:151
|
||||
#: dashboard/qml/SettingsPage.qml:196
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Emplacement d'adb :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Parcourir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#: dashboard/qml/SettingsPage.qml:215
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Par défaut"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:184
|
||||
#: dashboard/qml/SettingsPage.qml:229
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Personnalisé"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:189
|
||||
#: dashboard/qml/SettingsPage.qml:234
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Désactivé"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#: dashboard/qml/SettingsPage.qml:250
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "Compatibilité OpenVR :"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:235
|
||||
#: dashboard/qml/SettingsPage.qml:280
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "Chemin de la bibliothèque, en enlevant bin/linux64/vrclient.so"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:240
|
||||
#: dashboard/qml/SettingsPage.qml:285
|
||||
#, kde-format
|
||||
msgctxt "browse to choose the OpenVR compatility to use"
|
||||
msgctxt "browse to choose the OpenVR compatibility to use"
|
||||
msgid "Browse"
|
||||
msgstr "Parcourir"
|
||||
|
||||
|
||||
+1049
-585
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,992 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-07-11 14:46+0200\n"
|
||||
"PO-Revision-Date: 2026-07-28 20:25+0200\n"
|
||||
"Last-Translator: Mattia Zirpoli <mat.zirpoli@gmail.com>\n"
|
||||
"Language-Team: Italian <>\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 26.04.3\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:133
|
||||
#, kde-format
|
||||
msgid "Cannot save APK file: %1"
|
||||
msgstr "Impossibile salvare il file APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:167
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB / %2 MB"
|
||||
msgstr "Download dell'APK in corso: %1 MB / %2 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:169
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB"
|
||||
msgstr "Download dell'APK in corso: %1 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:178
|
||||
#, kde-format
|
||||
msgid "Download cancelled"
|
||||
msgstr "Download annullato"
|
||||
|
||||
#: dashboard/apk_installer.cpp:194
|
||||
#, kde-format
|
||||
msgid "Cannot download APK: %1"
|
||||
msgstr "Impossibile scaricare l'APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:217
|
||||
#, kde-format
|
||||
msgid "Installing APK"
|
||||
msgstr "Installazione dell'APK in corso"
|
||||
|
||||
#: dashboard/apk_installer.cpp:221
|
||||
#, kde-format
|
||||
msgid "adb failed to start: %1"
|
||||
msgstr "Avvio di adb non riuscito: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:231
|
||||
#, kde-format
|
||||
msgid "adb exited abnormally: %1"
|
||||
msgstr "Chiusura anomala di adb: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:239
|
||||
#, kde-format
|
||||
msgid "The 'adb install' command failed: exit code %1"
|
||||
msgstr "Il comando 'adb install' è fallito: codice di uscita %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:244
|
||||
#, kde-format
|
||||
msgid "Installation successful"
|
||||
msgstr "Installazione riuscita"
|
||||
|
||||
#: dashboard/main.cpp:26
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:28
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "WiVRn server"
|
||||
|
||||
#: dashboard/main.cpp:30
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 WiVRn development team"
|
||||
|
||||
#: dashboard/main.cpp:40
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:41
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "OpenXR runtime"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Indietro"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
msgid "Install the WiVRn app on your headset"
|
||||
msgstr "Installa l'app di WiVRn sul tuo visore"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:41 dashboard/qml/WizardPage.qml:157
|
||||
#: dashboard/qml/WizardPage.qml:192
|
||||
#, kde-format
|
||||
msgid "Checking latest release..."
|
||||
msgstr "Verifica dell'ultima versione in corso..."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
|
||||
#, kde-format
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "Nessun APK disponibile per questa versione"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
|
||||
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
msgstr "ADB non è installato"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:47
|
||||
#, kde-format
|
||||
msgid "Connect a headset and make sure developer mode is enabled"
|
||||
msgstr ""
|
||||
"Connetti un visore e assicurati che la modalità sviluppatore sia abilitata"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentation</a> to build your own "
|
||||
"client."
|
||||
msgstr ""
|
||||
"Segui le istruzioni nella <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentazione</a> per compilare "
|
||||
"il tuo client."
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
msgstr "Seleziona il tuo visore"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:46
|
||||
#, kde-format
|
||||
msgid "WiVRn is already installed on this device"
|
||||
msgstr "WiVRn è già installato su questo dispositivo."
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:54
|
||||
#, kde-format
|
||||
msgid "Reinstall WiVRn"
|
||||
msgstr "Reinstalla WiVRn"
|
||||
|
||||
#: dashboard/qml/DeviceCard.qml:54
|
||||
#, kde-format
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Installa WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Visori"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:29
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 second ago"
|
||||
msgid_plural "Last connection: %1 seconds ago"
|
||||
msgstr[0] "Ultima connessione: %1 secondo fa"
|
||||
msgstr[1] "Ultima connessione: %1 secondi fa"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:31
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 minute ago"
|
||||
msgid_plural "Last connection: %1 minutes ago"
|
||||
msgstr[0] "Ultima connessione: %1 minuto fa"
|
||||
msgstr[1] "Ultima connessione: %1 minuti fa"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 hour ago"
|
||||
msgid_plural "Last connection: %1 hours ago"
|
||||
msgstr[0] "Ultima connessione: %1 ora fa"
|
||||
msgstr[1] "Ultima connessione: %1 ore fa"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:35
|
||||
#, kde-format
|
||||
msgid "Last connection: %1 day ago"
|
||||
msgid_plural "Last connection: %1 days ago"
|
||||
msgstr[0] "Ultima connessione: %1 giorno fa"
|
||||
msgstr[1] "Ultima connessione: %1 giorni fa"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:40
|
||||
#, kde-format
|
||||
msgid "Rename headset"
|
||||
msgstr "Rinomina visore"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:48 dashboard/qml/HeadsetsPage.qml:116
|
||||
#, kde-format
|
||||
msgid "Rename"
|
||||
msgstr "Rinomina"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
|
||||
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
|
||||
#: dashboard/qml/WizardPage.qml:376
|
||||
#, kde-format
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:64
|
||||
#, kde-format
|
||||
msgid "Headset name…"
|
||||
msgstr "Nome del visore..."
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:128
|
||||
#, kde-format
|
||||
msgid "Remove"
|
||||
msgstr "Rimuovi"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:143
|
||||
#, kde-format
|
||||
msgid "Pairing enabled, PIN: %1"
|
||||
msgstr "Associazione abilitata, PIN: %1"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:148 dashboard/qml/TroubleshootPage.qml:50
|
||||
#, kde-format
|
||||
msgid "Disable pairing"
|
||||
msgstr "Disabilita l'associazione"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:166
|
||||
#, kde-format
|
||||
msgid "Start the WiVRn app on your headset and use the PIN: %1"
|
||||
msgstr "Avvia l'app di WiVRn sul tuo visore e usa il PIN: %1"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:166
|
||||
#, kde-format
|
||||
msgid "Enable pairing to allow your headset to connect to this computer"
|
||||
msgstr ""
|
||||
"Abilita l'associazione per consentire al tuo visore di connettersi a questo "
|
||||
"computer"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:45
|
||||
#, kde-format
|
||||
msgid "Enable pairing"
|
||||
msgstr "Abilita l'associazione"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:191
|
||||
#, kde-format
|
||||
msgid "Pair a new headset"
|
||||
msgstr "Associa un nuovo visore"
|
||||
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:12
|
||||
#, kde-format
|
||||
msgid "Headset statistics"
|
||||
msgstr "Statistiche del visore"
|
||||
|
||||
#: dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Dashboard WiVRn"
|
||||
|
||||
#: dashboard/qml/Main.qml:51
|
||||
#, kde-format
|
||||
msgid "Quit WiVRn"
|
||||
msgstr "Esci da WiVRn"
|
||||
|
||||
#: dashboard/qml/Main.qml:52
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The WiVRn server is active.\n"
|
||||
"Closing the window will terminate it."
|
||||
msgstr ""
|
||||
"Il server WiVRn è attivo.\n"
|
||||
"La chiusura della finestra lo terminerà."
|
||||
|
||||
#: dashboard/qml/Main.qml:142
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Il demone Avahi non è installato."
|
||||
|
||||
#: dashboard/qml/Main.qml:150
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Il demone Avahi non è avviato."
|
||||
|
||||
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:231
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Risolvi"
|
||||
|
||||
#: dashboard/qml/Main.qml:165
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "Il firewall potrebbe bloccare la porta 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr ""
|
||||
"Le GPU NVIDIA richiedono almeno la versione del driver 565.77, la versione "
|
||||
"attuale è %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:185
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Ulteriori informazioni"
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
|
||||
msgstr ""
|
||||
"Impossibile trovare i driver Vulkan, potrebbe essere necessario eseguire "
|
||||
"\"flatpak update\""
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found"
|
||||
msgstr "Impossibile trovare i driver Vulkan"
|
||||
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
|
||||
msgstr ""
|
||||
"Usa il driver Mesa (radv) per GPU AMD\n"
|
||||
"La codifica hardware con vaapi non funziona con AMDLVK e AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:209
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
"Install xrizer or OpenComposite."
|
||||
msgstr ""
|
||||
"Nessuna compatibilità con OpenVR rilevata, i giochi Steam non potranno "
|
||||
"avviare la VR.\n"
|
||||
"Installa xrizer o OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:217
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr ""
|
||||
"Steam è installato come snap. Gli snap non sono compatibili con WiVRn. "
|
||||
|
||||
#: dashboard/qml/Main.qml:225
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr "Steam è installato come flatpak ma non ha permessi sufficienti."
|
||||
|
||||
#: dashboard/qml/Main.qml:240
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Riavvia il server per applicare le modifiche alla configurazione"
|
||||
|
||||
#: dashboard/qml/Main.qml:246
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Riavvia ora"
|
||||
|
||||
#: dashboard/qml/Main.qml:271
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "Impossibile avviare il server"
|
||||
|
||||
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Apri i log del server"
|
||||
|
||||
#: dashboard/qml/Main.qml:303
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "Stato del server"
|
||||
|
||||
#: dashboard/qml/Main.qml:309
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "In esecuzione"
|
||||
|
||||
#: dashboard/qml/Main.qml:322
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Abilita associazione"
|
||||
|
||||
#: dashboard/qml/Main.qml:342
|
||||
#, kde-format
|
||||
msgid "Headset status"
|
||||
msgstr "Stato del visore"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#, kde-format
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "Visore"
|
||||
|
||||
#: dashboard/qml/Main.qml:352
|
||||
#, kde-format
|
||||
msgid "Not connected"
|
||||
msgstr "Non connesso"
|
||||
|
||||
#: dashboard/qml/Main.qml:356
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Disconnetti"
|
||||
|
||||
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
|
||||
#: dashboard/qml/Main.qml:380
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:366
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "Connetti (via cavo)"
|
||||
|
||||
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "Nessun visore connesso o il visore non è in modalità sviluppatore"
|
||||
|
||||
#: dashboard/qml/Main.qml:404
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Informazioni su Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:420
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Procedura guidata"
|
||||
|
||||
#: dashboard/qml/Main.qml:426
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Installa l'app"
|
||||
|
||||
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: dashboard/qml/Main.qml:451
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "Informazioni"
|
||||
|
||||
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Risoluzione dei problemi"
|
||||
|
||||
#: dashboard/qml/Main.qml:463
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "Versione %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:12
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
msgid "None"
|
||||
msgstr "Nessuna"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:18
|
||||
#, kde-format
|
||||
msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "Personalizzata"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:61
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
msgstr "Sfoglia"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:28
|
||||
#, kde-format
|
||||
msgid "The current encoder configuration is not supported"
|
||||
msgstr "La configurazione dell'encoder attuale non è supportata."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Reset"
|
||||
msgstr "Ripristina"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:40
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "Encoder:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:46
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:50
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "nvenc (GPU NVIDIA)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:54
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "vaapi (GPU AMD e Intel)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:58
|
||||
#, kde-format
|
||||
msgid "Vulkan (Any modern GPU)"
|
||||
msgstr "Vulkan (Qualsiasi GPU moderna)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:62
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (codifica software)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:79
|
||||
#, kde-format
|
||||
msgid "\"Auto\" will use hardware acceleration if it is available"
|
||||
msgstr "L'opzione \"Auto\" utilizzerà l'accelerazione hardware se disponibile"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Autostart application:"
|
||||
msgstr "Avvio automatico applicazione:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:94
|
||||
#, kde-format
|
||||
msgid "Auto connect from USB"
|
||||
msgstr "Connessione automaticamente da USB"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:102
|
||||
#, kde-format
|
||||
msgid "Advanced options"
|
||||
msgstr "Impostazioni avanzate"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:108
|
||||
#, kde-format
|
||||
msgid "Check system configuration on start"
|
||||
msgstr "Controlla la configurazione del sistema all'avvio"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:114
|
||||
#, kde-format
|
||||
msgid "Expose forwarded input devices via uinput"
|
||||
msgstr "Esponi i dispositivi di input inoltrati tramite uinput"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:117
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Replicate mouse, keyboard and gamepad connected to the headset as virtual "
|
||||
"devices on PC.\n"
|
||||
"Replicated devices will appear as if they were plugged to the PC, some keys "
|
||||
"may be reserved by the headset OS and not be available. Gamepad is also "
|
||||
"available without virtual devices for applications that access it through "
|
||||
"OpenXR."
|
||||
msgstr ""
|
||||
"Replica il mouse, la tastiera e il gamepad connessi al visore come "
|
||||
"dispositivi virtuali sul PC.\n"
|
||||
"I dispositivi replicati appariranno come se fossero collegati direttamente "
|
||||
"al PC, alcuni tasti potrebbero essere riservati dal sistema operativo del "
|
||||
"visore e non risultare disponibili. Il gamepad è disponibile anche senza "
|
||||
"dispositivi virtuali per applicazioni che vi accedono tramite OpenXR."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "Abilita la finestra di debug"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:129
|
||||
#, kde-format
|
||||
msgid "Enable SteamVR tracked devices support"
|
||||
msgstr "Abilita il supporto ai dispositivi tracciati da SteamVR"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:132
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
"Requires SteamVR to be installed.\n"
|
||||
"Devices must be be powered on before connecting to WiVRn.\n"
|
||||
"An external tool such as motoc is needed for calibration."
|
||||
msgstr ""
|
||||
"Consente l'uso di controller e tracker basati su tecnologia lighthouse.\n"
|
||||
"Richiede che SteamVR sia installato.\n"
|
||||
"I dispositivi devono essere accesi prima di connettersi a WiVRn.\n"
|
||||
"Per la calibrazione è necessario uno strumento esterno come motoc."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Percorso adb personalizzato"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:151
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Percorso adb:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "Sfoglia"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Predefinito"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:184
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Personalizzata"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:189
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Disabilitato"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "Libreria di compatibilità OpenVR:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:235
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "Percorso della libreria, escluso bin/linux64/vrclient.so"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:240
|
||||
#, kde-format
|
||||
msgctxt "browse to choose the OpenVR compatibility to use"
|
||||
msgid "Browse"
|
||||
msgstr "Sfoglia"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:8
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For Steam games, right click on the game in Steam, go in Properties > "
|
||||
"General and paste this in \"Launch options\":"
|
||||
msgstr ""
|
||||
"Per i giochi di Steam, fai clic con il pulsante destro del mouse sul gioco "
|
||||
"in Steam, vai in Proprietà > Generali e incolla questo in \"Opzioni di "
|
||||
"avvio\":"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:20
|
||||
#, kde-format
|
||||
msgid "Paste this in the Steam launch options for the app you want to start"
|
||||
msgstr ""
|
||||
"Incolla questo nelle opzioni di avvio di Steam per l'applicazione che "
|
||||
"desideri avviare"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:26
|
||||
#, kde-format
|
||||
msgctxt "copy text to the clipboard"
|
||||
msgid "Copy"
|
||||
msgstr "Copia"
|
||||
|
||||
#: dashboard/qml/SteamLaunchOptions.qml:30
|
||||
#, kde-format
|
||||
msgid "Copied Steam launch command"
|
||||
msgstr "Comando di avvio di Steam copiato"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:20
|
||||
#, kde-format
|
||||
msgid "I cannot find the WiVRn app on my headset"
|
||||
msgstr "Non riesco a trovare l'app di WiVRn sul mio visore"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:353
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you installed WiVRn over USB on a Meta or Pico headset, the app is in the "
|
||||
"\"unknown sources\" section."
|
||||
msgstr ""
|
||||
"Se hai installato WiVRn tramite USB su un visore Meta o Pico, l'app si trova "
|
||||
"nella sezione \"origini sconosciute\"."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:24
|
||||
#, kde-format
|
||||
msgid "I cannot see my computer in the WiVRn app"
|
||||
msgstr "Non riesco a vedere il mio computer nell'app di WiVRn"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:25
|
||||
#, kde-format
|
||||
msgid "If you have a firewall, make sure that port 5353/UDP is open."
|
||||
msgstr "Se hai un firewall, assicurati che la porta 5353/UDP sia aperta."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:28
|
||||
#, kde-format
|
||||
msgid "Connecting remains stuck on \"Connection to ...\""
|
||||
msgstr "La connessione rimane bloccata su \"Connessione a ...\""
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:29 dashboard/qml/TroubleshootPage.qml:33
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you have a firewall, make sure that port 9757 is open both for TCP and "
|
||||
"UDP."
|
||||
msgstr ""
|
||||
"Se hai un firewall, assicurati che la porta 9757 sia aperta sia per TCP che "
|
||||
"per UDP."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:32
|
||||
#, kde-format
|
||||
msgid "Connection fails with \"no route to host\""
|
||||
msgstr "La connessione non riesce e appare l'errore \"no route to host\""
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:36
|
||||
#, kde-format
|
||||
msgid "I have an \"Incompatible WiVRn server\" error on my headset"
|
||||
msgstr "Viene visualizzato l'errore \"Server WiVRn incompatibile\" sul visore"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>The version of the headset app and the server on your computer must match."
|
||||
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
|
||||
"server version is <b>%1</b></li></ul>"
|
||||
msgstr ""
|
||||
"<p>La versione dell'app sul visore e quella del server sul computer devono "
|
||||
"corrispondere.</p><ul><li>La versione nell'app del visore si trova nella "
|
||||
"pagina \"Informazioni\"</li><li>La versione del server è <b>%1</b></li></ul>"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:40
|
||||
#, kde-format
|
||||
msgid "I have a \"Pairing is disabled\" error"
|
||||
msgstr "Viene visualizzato l'errore \"L'associazione è disabilitata\""
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If you have reinstalled the server or the client or if you want to connect "
|
||||
"another headset, you must enable pairing before connecting."
|
||||
msgstr ""
|
||||
"Se hai reinstallato il server o il client, oppure se vuoi connettere un "
|
||||
"altro visore, devi abilitare l'associazione prima di effettuare il "
|
||||
"collegamento."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Pairing is currently enabled with PIN %1."
|
||||
msgstr "L'associazione è attualmente abilitata con PIN %1."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:41
|
||||
#, kde-format
|
||||
msgid "Pairing is currently disabled."
|
||||
msgstr "L'associazione è attualmente disabilitata."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:57
|
||||
#, kde-format
|
||||
msgid "I have no sound on my headset"
|
||||
msgstr "Non sento l'audio sul mio visore"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:406
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"When the headset is connected, select \"WiVRn\" as the default audio output "
|
||||
"device for applications to use it."
|
||||
msgstr ""
|
||||
"Quando il visore è connesso, selezione \"WiVRn\" come dispositivo di output "
|
||||
"audio predefinito per consentire alle applicazioni di utilizzarlo."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:61
|
||||
#, kde-format
|
||||
msgid "Some games fail to start or have input issues"
|
||||
msgstr "Alcuni giochi non si avviano o presentano problemi con l'input"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:62
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
|
||||
"\">vronlinux DB</a> if there are known bugs or workarounds."
|
||||
msgstr ""
|
||||
"Per problemi specifici relativi ai giochi, controlla sul <a href=\"https://"
|
||||
"db.vronlinux.org/\">database di vronlinux</a> se sono presenti bug noti o "
|
||||
"soluzioni alternative."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:79
|
||||
#, kde-format
|
||||
msgid "Report an issue"
|
||||
msgstr "Segnala un problema"
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:84
|
||||
#, kde-format
|
||||
msgid "Ask on Discord"
|
||||
msgstr "Chiedi su Discord"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Getting started"
|
||||
msgstr "Guida introduttiva"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
|
||||
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:366
|
||||
#: dashboard/qml/WizardPage.qml:413 dashboard/qml/WizardPage.qml:450
|
||||
#, kde-format
|
||||
msgid "Back"
|
||||
msgstr "Indietro"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:64
|
||||
#, kde-format
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Benvenuto su WiVRn"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:69
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This wizard will help you set up WiVRn on your headset and connect it to "
|
||||
"your computer."
|
||||
msgstr ""
|
||||
"Questa procedura guidata ti aiuterà a configurare WiVRn sul tuo visore e a "
|
||||
"connetterlo al computer."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
|
||||
#: dashboard/qml/WizardPage.qml:418 dashboard/qml/WizardPage.qml:455
|
||||
#, kde-format
|
||||
msgid "Next"
|
||||
msgstr "Avanti"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:112
|
||||
#, kde-format
|
||||
msgid "How to enable developer mode"
|
||||
msgstr "Come abilitare la modalità sviluppatore"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:119
|
||||
#, kde-format
|
||||
msgid "Follow the manufacturer's instructions below:"
|
||||
msgstr "Segui le istruzione del produttore riportate di seguito:"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:142
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"In order to use WiVRn, you will have to install the client app on your "
|
||||
"headset.\n"
|
||||
"You can either install it from the Meta store or directly over USB."
|
||||
msgstr ""
|
||||
"Per usare WiVRn, dovrai installare l'app del client sul tuo visore.\n"
|
||||
"Puoi installarla dal Meta store o direttamente tramite USB."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:148
|
||||
#, kde-format
|
||||
msgid "Install from the Meta store"
|
||||
msgstr "Installa dal Meta store"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:152
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
|
||||
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
|
||||
msgstr ""
|
||||
"Per il Quest 2, 3, 3S, e Pro, puoi scaricare l'app dal <a href=\"https://"
|
||||
"www.meta.com/experiences/7959676140827574/\">Meta store</a>."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:164
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A newer release is available: %1 → %2, the client app on the Meta store may "
|
||||
"not be compatible."
|
||||
msgstr ""
|
||||
"È disponibile una nuova versione: %1 → %2, l'app client sul Meta Store "
|
||||
"potrebbe non essere compatibile."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:171
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This is a nightly build, the client app on the Meta store may not be "
|
||||
"compatible."
|
||||
msgstr ""
|
||||
"Questa è una build nightly, l'app client potrebbe non essere compatibile."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:181
|
||||
#, kde-format
|
||||
msgctxt "displayed between 'meta store' and 'install over USB' in the wizard"
|
||||
msgid "Or"
|
||||
msgstr "O"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:187
|
||||
#, kde-format
|
||||
msgid "Install over USB"
|
||||
msgstr "Installa tramite USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:219
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>No headset detected. Make sure that:\n"
|
||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||
"href=\"#\">developer mode</a></li></ul></p>"
|
||||
msgstr ""
|
||||
"<p>Nessun visore rilevato, assicurati che:\n"
|
||||
"<ul><li>Le regole udev per ADB siano installate</li><li>Il visore sia in <a "
|
||||
"href=\"#\">modalità sviluppatore</a></li></ul></p>"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:295
|
||||
#, kde-format
|
||||
msgid "Important information"
|
||||
msgstr "Informazioni importanti"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:301
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
|
||||
"running."
|
||||
msgstr ""
|
||||
"WiVRn sostituisce completamente SteamVR, non dovresti avviare SteamVR mentre "
|
||||
"WiVRn è in esecuzione."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:313
|
||||
#, kde-format
|
||||
msgid "Start the WiVRn app on your headset"
|
||||
msgstr "Avvia l'app di WiVRn sul tuo visore"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:319
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
|
||||
"and enter PIN \"%2\"."
|
||||
msgstr ""
|
||||
"Per connetterti tramite Wi-Fi, avvia l'app WiVRn sul tuo visore, connettiti "
|
||||
"a \"%1\" e inserisci il PIN \"%2\""
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:326
|
||||
#, kde-format
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "Per connetterti tramite USB, fai clic su \"Connetti tramite USB\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Connetti tramite USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
msgstr "Risoluzione dei problemi"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:358
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If the server is not visible or the connection fails, check that ports 5353 "
|
||||
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
|
||||
msgstr ""
|
||||
"Se il server non è visibile o la connessione non va a buon fine, verifica "
|
||||
"che le porte 5353 (UDP) e 9757 (TCP e UDP) siano aperte nel tuo firewall."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:371
|
||||
#, kde-format
|
||||
msgid "Skip"
|
||||
msgstr "Salta"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:391
|
||||
#, kde-format
|
||||
msgid "Connection established"
|
||||
msgstr "Connessione stabilita"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:396
|
||||
#, kde-format
|
||||
msgid "Your headset is now connected."
|
||||
msgstr "Il tuo visore è ora connesso."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:443
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect another headset, make sure pairing is enabled in the dashboard "
|
||||
"before connecting."
|
||||
msgstr ""
|
||||
"Per connettere un altro visore, assicurati che l'associazione sia abilitata "
|
||||
"nella dashboard prima di procedere con la connessione."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:423 dashboard/qml/WizardPage.qml:460
|
||||
#, kde-format
|
||||
msgid "Finish"
|
||||
msgstr "Fine"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:438
|
||||
#, kde-format
|
||||
msgid "Finished"
|
||||
msgstr "Completato"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:565
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:566
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
+1078
-579
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-07-09 12:31+0900\n"
|
||||
"POT-Creation-Date: 2026-08-30 11:42+0900\n"
|
||||
"PO-Revision-Date: 2025-04-10 07:14+0900\n"
|
||||
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
|
||||
"Language-Team: Japanese <>\n"
|
||||
@@ -552,8 +552,10 @@ msgid ""
|
||||
"available without virtual devices for applications that access it through "
|
||||
"OpenXR."
|
||||
msgstr ""
|
||||
"HMD接続のマウス・キーボード・ゲームコントローラーをPCの仮想デバイスとして再現します。\n"
|
||||
"PCに直接接続した状態で認識されますが、一部のキーはHMDのOSが使用するため、利用できない場合があります。\n"
|
||||
"HMD接続のマウス・キーボード・ゲームコントローラーをPCの仮想デバイスとして再現"
|
||||
"します。\n"
|
||||
"PCに直接接続した状態で認識されますが、一部のキーはHMDのOSが使用するため、利用"
|
||||
"できない場合があります。\n"
|
||||
"OpenXR対応アプリでは、仮想デバイスなしでもゲームパッドが使用可能です。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:122
|
||||
@@ -579,51 +581,96 @@ msgstr ""
|
||||
"すべてのデバイスの電源が入ってからHMDを接続しましょう。\n"
|
||||
"キャリブレーションはmotocなどのソフトウェアで行います。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:140
|
||||
#: dashboard/qml/SettingsPage.qml:138
|
||||
#, kde-format
|
||||
msgid "Clamp extrapolation for SteamVR tracked devices"
|
||||
msgstr "SteamVRデバイスの動きの予測を制限する"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:142
|
||||
#, kde-format
|
||||
msgid "SteamVR max pose extrapolation"
|
||||
msgstr "SteamVRデバイスの外挿制限"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:152
|
||||
#, kde-format
|
||||
msgctxt "value display for SteamVR max pose extrapolation"
|
||||
msgid "%1ms"
|
||||
msgid_plural "%1ms"
|
||||
msgstr[0] "%1ms"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:157
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Maximum time in milliseconds that poses may be extrapolated ahead for "
|
||||
"SteamVR tracked devices. Tune this value if you experience jittery or wobbly "
|
||||
"tracking."
|
||||
msgstr ""
|
||||
"SteamVRデバイスのポーズを外挿する最大時間(ミリ秒)です。"
|
||||
"追跡にガタつきやふらつきがある場合は、この値を調整してください。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:162
|
||||
#, kde-format
|
||||
msgid "SteamVR joystick deadzone"
|
||||
msgstr "SteamVRジョイスティック・デッドゾーン"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:177
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Deadzone to apply to joysticks on lighthouse-tracked controllers, such as "
|
||||
"Index.\n"
|
||||
"For standalone controllers, deadzones may be adjusted via the headset's "
|
||||
"system settings."
|
||||
msgstr ""
|
||||
"Indexなどのベースステーション式コントローラーのジョイスティックに適用される"
|
||||
"デッドゾーン。\n"
|
||||
"ベースステーション式以外のコントローラーは、HMDのシステム設定で調整してくださ"
|
||||
"い。"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:185
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "特定なADBの場所"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:151
|
||||
#: dashboard/qml/SettingsPage.qml:196
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "ADBの場所:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:160
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the adb binary"
|
||||
msgid "Browse"
|
||||
msgstr "検索する"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#: dashboard/qml/SettingsPage.qml:215
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "デフォルト"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:184
|
||||
#: dashboard/qml/SettingsPage.qml:229
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "カスタム"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:189
|
||||
#: dashboard/qml/SettingsPage.qml:234
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "無し"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:205
|
||||
#: dashboard/qml/SettingsPage.qml:250
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "OpenVR実装ライブラリー"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:235
|
||||
#: dashboard/qml/SettingsPage.qml:280
|
||||
#, kde-format
|
||||
msgid "Library path, excluding bin/linux64/vrclient.so"
|
||||
msgstr "ライブラリーの場所(bin/linux64/vrclient.so 無し)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:240
|
||||
#: dashboard/qml/SettingsPage.qml:285
|
||||
#, kde-format
|
||||
msgctxt "browse to choose the OpenVR compatility to use"
|
||||
msgctxt "browse to choose the OpenVR compatibility to use"
|
||||
msgid "Browse"
|
||||
msgstr "検索"
|
||||
|
||||
|
||||
+1004
-550
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user