monado/src/xrt/targets/steamvr_drv
Mario Kleiner 887b770f9e aux/binding: Implement optional "steamvr_controllertypes" for SteamVR input bindings
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>
2023-01-23 16:30:27 +00:00
..
resources t/steamvr_drv: Add license sidecar files 2021-04-26 14:08:57 +00:00
CMakeLists.txt aux/binding: Implement optional "steamvr_controllertypes" for SteamVR input bindings 2023-01-23 16:30:27 +00:00
copy_assets.py t/steamvr: Attempt to fix spurious CI failure 2022-01-25 19:24:49 +00:00
copy_plugin.py steamvr: Implement basic SteamVR driver 2020-11-09 19:21:27 +00:00
driver.vrdrivermanifest steamvr: Implement basic SteamVR driver 2020-11-09 19:21:27 +00:00
driver.vrdrivermanifest.license t/steamvr_drv: Add license sidecar files 2021-04-26 14:08:57 +00:00
main.c t/steamvr_drv: Adjust ifdef 2022-05-03 22:44:46 +01:00
steamvr.vrsettings steamvr: Implement basic SteamVR driver 2020-11-09 19:21:27 +00:00
steamvr.vrsettings.license t/steamvr_drv: Add license sidecar files 2021-04-26 14:08:57 +00:00