]> git.tdb.fi Git - libs/vr.git/blobdiff - source/openvr/openvrsystem.cpp
Add a system creation function with automatic backend detection
[libs/vr.git] / source / openvr / openvrsystem.cpp
index e71ba33b45346935d22eb48fc54b22724f4f4888..c137400542448b42fd12b5b7dccf84cef341e46f 100644 (file)
@@ -47,6 +47,11 @@ OpenVRSystem::~OpenVRSystem()
                vr::VR_Shutdown();
 }
 
+bool OpenVRSystem::is_maybe_available()
+{
+       return vr::VR_IsHmdPresent();
+}
+
 void OpenVRSystem::configure_view(StereoView &view) const
 {
        vr::IVRSystem *vr_sys = vr::VRSystem();