Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acgl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACGL
acgl
Commits
711bddc5
Commit
711bddc5
authored
Oct 16, 2013
by
Robert Menzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started work on multiple Rift support - does not itterate all devices on Linux
parent
8d9486c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
cmake
cmake
+1
-1
src/ACGL/HardwareSupport/SimpleRiftController.cc
src/ACGL/HardwareSupport/SimpleRiftController.cc
+14
-1
No files found.
cmake
@
2ab8ddba
Subproject commit
7c0af24a1217acf415769e0ac5d2861a2637e698
Subproject commit
2ab8ddba5b6c77730193e734bfb63cc45ac93e77
src/ACGL/HardwareSupport/SimpleRiftController.cc
View file @
711bddc5
...
...
@@ -24,6 +24,7 @@ SimpleRiftController::SimpleRiftController( uint32_t _riftnumber )
if
(
_riftnumber
!=
0
)
{
error
()
<<
"opening any other Rift than ID 0 is not supported yet! Trying to open Rift nr 0"
<<
endl
;
_riftnumber
=
0
;
}
#ifdef ACGL_DEBUG
...
...
@@ -38,7 +39,19 @@ SimpleRiftController::SimpleRiftController( uint32_t _riftnumber )
error
()
<<
"could not create a Rift Device Manager"
<<
endl
;
mORDevice
=
NULL
;
}
else
{
mORDevice
=
*
mORManager
->
EnumerateDevices
<
HMDDevice
>
().
CreateDevice
();
DeviceEnumerator
<
HMDDevice
>
hmdEnumerator
=
mORManager
->
EnumerateDevices
<
HMDDevice
>
();
bool
riftOK
=
true
;
for
(
uint32_t
i
=
0
;
i
<
_riftnumber
;
++
i
)
{
riftOK
=
hmdEnumerator
.
Next
();
}
if
(
riftOK
)
{
mORDevice
=
*
hmdEnumerator
.
CreateDevice
();
}
else
{
error
()
<<
"Rift number "
<<
_riftnumber
<<
" not found"
<<
endl
;
mORDevice
=
NULL
;
}
}
mORHMDInfo
=
new
OVR
::
HMDInfo
();
...
...
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