diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-01 07:50:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-06 04:21:40 +0200 |
commit | 90a8561b596c5e6d6c26ca24e1226fa1d7fefb88 (patch) | |
tree | 29be71b17445ce947771f722acaecb66ebedc669 /tracker-steamvr | |
parent | 77b08c1117a849ab5de33b7c06976b0a151c2fd6 (diff) |
tracker/steamvr: add center() override
Diffstat (limited to 'tracker-steamvr')
-rw-r--r-- | tracker-steamvr/steamvr.cpp | 7 | ||||
-rw-r--r-- | tracker-steamvr/steamvr.hpp | 1 |
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; |