d/steamvr_lh: Set driver ipd & brightness on HMD

Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
This commit is contained in:
BabbleBones 2023-08-13 00:51:25 -04:00 committed by Jakob Bornecrantz
parent 8795268c86
commit 8f9dd99df5

View file

@ -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;
}