Remove option forcing bindings to show up in SteamVR

Overlay applications show up in the bindings menu after SteamVR beta
1.3.1, making these features unnecessary.
This commit is contained in:
Vasily
2019-03-10 23:12:26 +01:00
committed by username223
parent 84be2090c8
commit 5d2901be33
6 changed files with 1 additions and 77 deletions
-53
View File
@@ -31,59 +31,6 @@ void initializeProperly()
}
}
/*!
Initializes OpenVR to be in the bindings menu and then exits.
This is needed because all applications initialized with OpenVR that aren't of
type vr::VRApplication_Scene do not show up the in bindings menu.
This is obviously an ugly hack and should be done away with as soon as Valve
fixes this issue.
Official Issues for this:
https://github.com/ValveSoftware/openvr/issues/914
https://github.com/ValveSoftware/openvr/issues/926
https://github.com/ValveSoftware/openvr/issues/879
You can also make it appear by changing the
C:\Program Files (x86)\Steam\config\vrappconfig\*.vrappconfig file for your
project to have a "last_launch_time" of something greater than zero.
From experimentation it seems that there's a cutoff time around 2 weeks before
the current time. Setting it to the day before seems to be a good bet. (In unix
time).
*/
[[noreturn]] void openBindingsMenu()
{
// Prefix the logs with this to visibly document that this isn't how things
// are supposed to be. Hopefully someone reads the logs and comes here after
// Valve has fixed it.
constexpr auto logPrefix = "[HACK]::openBindingsMenu ";
auto initError = vr::VRInitError_None;
LOG( INFO ) << logPrefix << "Initializing application as scene.";
vr::VR_Init( &initError, vr::VRApplication_Scene );
if ( initError != vr::VRInitError_None )
{
LOG( ERROR ) << logPrefix << "Error initializing application as scene.";
exit( 2 );
}
else
{
LOG( INFO ) << logPrefix << "Application initialized as scene.";
}
// This needs to be initialized, otherwise the bindings won't show up in the
// menu.
input::Manifest manifest;
// SteamVR just needs a good enough time to start up comfortably and for the
// user to get into the bindings menu.
while ( true )
{
}
}
OpenVR_Init::OpenVR_Init()
{
initializeProperly();