Exemple #1
0
bool oculusViaOpenVR() {
    static const QString DEBUG_FLAG("HIFI_DEBUG_OPENVR");
    static bool enableDebugOpenVR = QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG);
    return enableDebugOpenVR && isOculusPresent() && vr::VR_IsHmdPresent();
}
Exemple #2
0
bool openVrSupported() {
    static const QString DEBUG_FLAG("HIFI_DEBUG_OPENVR");
    static bool enableDebugOpenVR = QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG);
    return (enableDebugOpenVR || !isOculusPresent()) && vr::VR_IsHmdPresent();
}
bool OpenVrDisplayPlugin::isSupported() const {
    return !isOculusPresent() && vr::VR_IsHmdPresent();
}