mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-22 14:41:47 +00:00
887b770f9e
Add an optional switch -s or --steamvr to steamvr_profiles.py, which enables a different naming scheme for the "controller_type" field in the generated SteamVR profile json files. If the switch is provided and an interaction profile in bindings.json provides the optional new property "steamvr_controllertype", that property will be used for the "controller_type" field of the written out .json, instead of the regular auto-generated name. This allows to generate json files which use controller_type names normally used by SteamVR, so Monado provided controllers are mapped to the same OpenXR interaction profiles that SteamVR would normally map them to. E.g., the standard controller_type for Oculus touch controllers used by SteamVR is "oculus_touch" instead of Monado's "monado_oculus_touch_controller". That in turn allows OpenXR clients to use the SteamVR/OpenXR runtime to access controllers provided by Monado's SteamVR driver plugin. Without such compatible json files, only standard OpenVR clients can use controllers exposed by Monado's SteamVR driver by default, but not OpenXR clients. Tested with an Oculus Rift CV-1, and shown to now enable OpenXR clients to make full use of the Oculus touch controllers. The mappings for controllers other than Oculus Touch are derived from SteamVR log output, but not actually tested due to lack of suitable hw. Per discussion for the merge request, we enable this '-s' flag by default in the make file for SteamVR style naming scheme. Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> |
||
---|---|---|
.. | ||
resources | ||
CMakeLists.txt | ||
copy_assets.py | ||
copy_plugin.py | ||
driver.vrdrivermanifest | ||
driver.vrdrivermanifest.license | ||
main.c | ||
steamvr.vrsettings | ||
steamvr.vrsettings.license |