summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr/steamvr.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-30 04:40:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-30 04:40:06 +0100
commit64250f9bb6f5d95f14a8d7f3329d018679710540 (patch)
tree878cab73aa45dea75d05fdf95f2e2c72091a7393 /tracker-steamvr/steamvr.hpp
parente712a6eea96d381d2f1e3c0f8328d870321b31de (diff)
tracker/steamvr: broken, but we already know the right rotation order
Diffstat (limited to 'tracker-steamvr/steamvr.hpp')
-rw-r--r--tracker-steamvr/steamvr.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tracker-steamvr/steamvr.hpp b/tracker-steamvr/steamvr.hpp
index 1adb40b1..4a2bd117 100644
--- a/tracker-steamvr/steamvr.hpp
+++ b/tracker-steamvr/steamvr.hpp
@@ -18,11 +18,13 @@
using namespace options;
-using quat = Mat<float, 4, 1>;
-
struct settings : opts
{
- settings() : opts("valve-steamvr") {}
+ value<int> order;
+ settings() :
+ opts("valve-steamvr"),
+ order(b, "rotation-order", 0)
+ {}
};
class steamvr : public ITracker
@@ -41,7 +43,9 @@ private:
settings s;
- static quat get_quaternion(const vr::HmdMatrix34_t& r);
+ using rmat = euler::rmat;
+ using euler_t = euler::euler_t;
+
static void vr_deleter();
static vr_t vr_init(error_t& error);
static QString strerror(error_t error);