Just been copied from OpenVR driver example
SDK: https://github.com/verncat/RayNeo-Air-3S-Pro-OpenVR
This driver exposes multiple HMD input components so you can bind RayNeo glasses buttons to SteamVR dashboard actions:
- System Button (Power/System): Toggles Dashboard by default.
- Volume Up: Mapped to
trigger/click(use for Left-Click in Dashboard). - Volume Down: Mapped to
grip/click(use for Back). - Brightness Button:
- Single Click: Mapped to
application_menu/click(use for Home). - Double Click: Recenter the HMD position/orientation (useful for drift correction).
- Single Click: Mapped to
Pointer pose for mouse-like interaction comes from /user/head/pose/raw.
Example binding for Generic HMD (place in SteamVR resources or import via Controller Bindings UI): see resources/bindings/rayneo_generic_hmd.json.
You can download the latest release from the GitHub Releases page.
Prerequisites:
- CMake: Version 3.16 or newer.
- Compiler: C++23 compatible compiler.
- Windows: Visual Studio 2022 (v17.0+).
- Linux: GCC 13+ or Clang 16+.
- Dependencies:
- Windows:
libusb(recommended viavcpkg). - Linux:
libusb-1.0-0-dev(Debian/Ubuntu) orlibusb-devel(Fedora/Arch),pkg-config.
- Windows:
Windows:
- Install
vcpkgandlibusb(if not already installed):git clone https://github.com/microsoft/vcpkg .\vcpkg\bootstrap-vcpkg.bat .\vcpkg\vcpkg install libusb
- Open the project folder in VS Code or a terminal.
- Create a build directory:
mkdir build && cd build - Generate project files (replace path to
vcpkg.cmakewith your actual path):cmake .. -DCMAKE_TOOLCHAIN_FILE=C:/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
- Build the project:
cmake --build . --config Release
Linux:
- Install dependencies (Ubuntu/Debian example):
sudo apt-get update sudo apt-get install cmake build-essential libusb-1.0-0-dev pkg-config
- Open a terminal in the project folder.
- Create a build directory:
mkdir build_linux && cd build_linux - Generate makefiles:
cmake .. - Build the project:
make