diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-07-18 19:21:52 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-07-18 19:21:52 +0200 |
commit | cc8146215b034aa5e92ad0313db096aba3e73499 (patch) | |
tree | e431946545824d97ff29f70e4522ff01b9b230c4 /ftnoir_tracker_rift | |
parent | 959d584a667654494e6655502e6be60973a502f2 (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.cpp | 6 |
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; } } } |