Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
84223f7a
Commit
84223f7a
authored
Jun 18, 2014
by
Philip Trettner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made rift dummy behavior configurable. (Define ACGL_RIFT_USE_DUMMY):x
parent
211206bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/ACGL/HardwareSupport/RiftSdk.cc
src/ACGL/HardwareSupport/RiftSdk.cc
+11
-5
No files found.
src/ACGL/HardwareSupport/RiftSdk.cc
View file @
84223f7a
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment