summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_rift
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-07-18 19:21:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-07-18 19:21:52 +0200
commitcc8146215b034aa5e92ad0313db096aba3e73499 (patch)
treee431946545824d97ff29f70e4522ff01b9b230c4 /ftnoir_tracker_rift
parent959d584a667654494e6655502e6be60973a502f2 (diff)
Rift logic broken, reorder
Submitted-by: Chris Thompson (mm0zct)
Diffstat (limited to 'ftnoir_tracker_rift')
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
index 14b8db67..219b0d7c 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
@@ -51,6 +51,9 @@ void Rift_Tracker::GetHeadPoseData(double *data)
if(newHeadPose[Yaw]<-s.deadzone)newHeadPose[Yaw]+= s.constant_drift;
old_yaw=yaw;
}
+ newHeadPose[Pitch] = pitch;
+ newHeadPose[Roll] = roll;
+ newHeadPose[Yaw] = yaw;
if (s.bEnableYaw) {
data[Yaw] = newHeadPose[Yaw] * 57.295781f;
}
@@ -61,9 +64,6 @@ void Rift_Tracker::GetHeadPoseData(double *data)
data[Roll] = newHeadPose[Roll] * 57.295781f;
}
ovrHmd_EndFrameTiming(hmd);
- newHeadPose[Pitch] = pitch;
- newHeadPose[Roll] = roll;
- newHeadPose[Yaw] = yaw;
}
}
}