summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tracker-steamvr/steamvr.cpp7
-rw-r--r--tracker-steamvr/steamvr.hpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp
index e40d51a1..2d92c5a4 100644
--- a/tracker-steamvr/steamvr.cpp
+++ b/tracker-steamvr/steamvr.cpp
@@ -147,6 +147,13 @@ void steamvr::data(double* data)
}
}
+bool steamvr::center()
+{
+ if (vr)
+ vr->ResetSeatedZeroPose();
+ return false;
+}
+
void steamvr_dialog::register_tracker(ITracker*) {}
void steamvr_dialog::unregister_tracker() {}
diff --git a/tracker-steamvr/steamvr.hpp b/tracker-steamvr/steamvr.hpp
index 5546d619..2842fda3 100644
--- a/tracker-steamvr/steamvr.hpp
+++ b/tracker-steamvr/steamvr.hpp
@@ -33,6 +33,7 @@ public:
~steamvr() override;
void start_tracker(QFrame *) override;
void data(double *data) override;
+ bool center() override;
private:
using error_t = vr::EVRInitError;