Fix rotation counter stats during rotation drag

This commit is contained in:
Kung-vr
2019-01-24 00:58:15 +09:00
parent ec0d35bf0d
commit 499a0e3ede
5 changed files with 97 additions and 127 deletions
@@ -70,6 +70,10 @@ private:
// Set lastHandQuaternion.w to -1000.0 when last hand is invalid.
vr::HmdQuaternion_t lastHandQuaternion = { -1000.0, 0.0, 0.0, 0.0 };
vr::HmdQuaternion_t handQuaternion;
// Set lastHmdQuaternion.w to -1000.0 when last hmd pose is invalid.
vr::HmdQuaternion_t lastHmdQuaternion = { -1000.0, 0.0, 0.0, 0.0 };
vr::HmdQuaternion_t hmdQuaternion;
double m_hmdYawTotal = 0.0;
unsigned settingsUpdateCounter = 0;
@@ -95,6 +99,8 @@ public:
bool lockXToggle() const;
bool lockYToggle() const;
bool lockZToggle() const;
double getHmdYawTotal();
void resetHmdYawTotal();
public slots:
int trackingUniverse() const;