ChristophHaag / SteamVR-OpenHMD

SteamVR plugin for using OpenHMD drivers in SteamVR
Boost Software License 1.0
195 stars 32 forks source link

Refactor config and disable autodetect if the config is provided #85

Open 20kdc opened 6 months ago

20kdc commented 6 months ago

So something I've run into with my personal setup is that if you have an HMD via OpenHMD, but no controllers, OpenHMD's "null" drivers tend to occupy the left/right controller slots.

However, for some circumstances (i.e. confirming function of the driver), using the null drivers is wanted, so ignoring them is not advisible.

Owing to this, I've modified how the config is handled. Autodetection is now disabled if an explicit config file is provided, and there are now proper default values rather than uninitialized memory.