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

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

parent 211206bc
...@@ -54,10 +54,16 @@ namespace HardwareSupport{ ...@@ -54,10 +54,16 @@ namespace HardwareSupport{
return NULL; return NULL;
} }
else if (!mHmd && !_headTrackingIsRequired) { else if (!mHmd && !_headTrackingIsRequired) {
//warning() << "could not connect to a real Oculus Rift HMD - generating sensorless dummy" << endl;
//mHmd = ovrHmd_CreateDebug(ovrHmd_DK1); #if ACGL_RIFT_USE_DUMMY
debug() << "could not connect to a real Oculus Rift HMD" << endl; warning() << "could not connect to a real Oculus Rift HMD - generating sensorless dummy" << endl;
return NULL; mHmd = ovrHmd_CreateDebug(ovrHmd_DK1);
#else
debug() << "could not connect to a real Oculus Rift HMD" << endl;
mHmd = NULL;
#endif
return mHmd;
} }
ovrHmdDesc mHmdDesc; ovrHmdDesc mHmdDesc;
...@@ -108,4 +114,4 @@ namespace HardwareSupport{ ...@@ -108,4 +114,4 @@ namespace HardwareSupport{
} }
#endif #endif
#endif #endif
\ No newline at end of file
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