Skip to content

OpenVR: Never ignore VREvent_Quit

Bernhard Fröhler requested to merge (removed):FixOpenVRShutdown into master

Always handle the vr::VREvent_Quit (causing it to stop the event loop).

In general, when SteamVR is shut down while an application is still running in it, SteamVR sends such an event to the application, then waits a little, and then shuts down the application by force if it hasn't called vr::VR_Shutdown() in the meantime (https://github.com/ValveSoftware/openvr/issues/878)

This change leads to applications always exiting the interactor when such a VREvent_Quit comes in; this potentially avoids waiting times and (more importantly for us) enables an application to keep on running when the SteamVR runtime closes (OpenVR can run in a non-GUI thread alongside another graphical user interface).

Edited by Bernhard Fröhler

Merge request reports