Commit 84223f7a authored by Philip Trettner's avatar Philip Trettner

Made rift dummy behavior configurable. (Define ACGL_RIFT_USE_DUMMY):x

parent 211206bc
......@@ -54,10 +54,16 @@ namespace HardwareSupport{
return NULL;
}
else if (!mHmd && !_headTrackingIsRequired) {
//warning() << "could not connect to a real Oculus Rift HMD - generating sensorless dummy" << endl;
//mHmd = ovrHmd_CreateDebug(ovrHmd_DK1);
debug() << "could not connect to a real Oculus Rift HMD" << endl;
return NULL;
#if ACGL_RIFT_USE_DUMMY
warning() << "could not connect to a real Oculus Rift HMD - generating sensorless dummy" << endl;
mHmd = ovrHmd_CreateDebug(ovrHmd_DK1);
#else
debug() << "could not connect to a real Oculus Rift HMD" << endl;
mHmd = NULL;
#endif
return mHmd;
}
ovrHmdDesc mHmdDesc;
......@@ -108,4 +114,4 @@ namespace HardwareSupport{
}
#endif
#endif
\ No newline at end of file
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment