summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_rift
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-08-31 12:51:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-08-31 12:51:11 +0200
commit580f17da5a01434489f0996656091d325623501c (patch)
tree4aa6d1837d3000d28ebc432198f5a9e41094c751 /ftnoir_tracker_rift
parent0027139d8348e07e6a2d9734489964961294fe22 (diff)
fix ovr 0.4 api usage
Diffstat (limited to 'ftnoir_tracker_rift')
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp2
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
index ea268f12..be0ee689 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
@@ -40,7 +40,7 @@ void Rift_Tracker::GetHeadPoseData(double *data)
ovrHSWDisplayState hsw;
if (ovrHmd_GetHSWDisplayState(hmd, &hsw), hsw.Displayed)
ovrHmd_DismissHSWDisplay(hmd);
- ovrTrackingState ss = ovrHmd_GetTrackingState(hmd, frameTiming.ScanoutMidpointSeconds);
+ ovrTrackingState ss = ovrHmd_GetTrackingState(hmd, 0);
if(ss.StatusFlags & ovrStatus_OrientationTracked) {
auto pose = ss.HeadPose.ThePose;
Quatf quat = pose.Orientation;
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.h b/ftnoir_tracker_rift/ftnoir_tracker_rift.h
index 3e26abdb..ee51b2cb 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.h
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.h
@@ -45,8 +45,6 @@ protected:
private:
double old_yaw;
ovrHmd hmd;
- ovrHmdDesc hmdDesc;
- ovrFrameTiming frameTiming;
settings s;
};