mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
d/steamvr_lh: Set driver ipd & brightness on HMD
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
This commit is contained in:
parent
8795268c86
commit
8f9dd99df5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue