From 8f9dd99df566b7f72ce824caa9c744e4cecd891d Mon Sep 17 00:00:00 2001 From: BabbleBones Date: Sun, 13 Aug 2023 00:51:25 -0400 Subject: [PATCH] d/steamvr_lh: Set driver ipd & brightness on HMD Co-Authored-By: Gabriele Musco --- src/xrt/drivers/steamvr_lh/interfaces/settings.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xrt/drivers/steamvr_lh/interfaces/settings.cpp b/src/xrt/drivers/steamvr_lh/interfaces/settings.cpp index 69918cc05..f181096b7 100644 --- a/src/xrt/drivers/steamvr_lh/interfaces/settings.cpp +++ b/src/xrt/drivers/steamvr_lh/interfaces/settings.cpp @@ -62,6 +62,16 @@ Settings::GetInt32(const char *pchSection, const char *pchSettingsKey, vr::EVRSe float Settings::GetFloat(const char *pchSection, const char *pchSettingsKey, vr::EVRSettingsError *peError) { + if (!strcmp(pchSection, "steamvr")) { + if (!strcmp(pchSettingsKey, "analogGain")) { + // Return 100% brightness. + return 1.0; + } + if (!strcmp(pchSettingsKey, "ipd")) { + // Inform the SteamVR driver we have 0 ipd (in case) it factors this into the eye matrix. + return 0.f; + } + } return 0.0; }