summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-06-05 14:56:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-06-05 14:56:28 +0200
commit0a76a2f7d38931cac4e8106b08a26126cb4aa655 (patch)
tree04aeaf133e2f02bbef50ef4ecddc20583ef10f21 /tracker-steamvr
parent2e748a9202d1868c30eaa66c521496294e2c3a51 (diff)
tracker/steamvr: use internal centering with no VRChaperone
Diffstat (limited to 'tracker-steamvr')
-rw-r--r--tracker-steamvr/steamvr.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp
index d3aaff77..15795c0c 100644
--- a/tracker-steamvr/steamvr.cpp
+++ b/tracker-steamvr/steamvr.cpp
@@ -263,13 +263,17 @@ bool steamvr::center()
{
auto* c = vr::VRChaperone();
if (!c)
+ {
eval_once(qDebug() << "vr::VRChaperone == NULL");
+ return false;
+ }
else
+ {
c->ResetZeroPose(origin::TrackingUniverseSeated);
-
- // Use chaperone universe real world up instead of opentrack's initial pose centering
- // Note: Controllers will be centered based on initial headset position.
- return true;
+ // Use chaperone universe real world up instead of opentrack's initial pose centering
+ // Note: Controllers will be centered based on initial headset position.
+ return true;
+ }
}
else
// with controllers, resetting the seated pose does nothing