seperate recentering of playspace into it's own button

This commit is contained in:
Robin Appelman
2018-04-02 13:09:04 +02:00
parent 68bb8dc449
commit 4e1aaabe95
4 changed files with 31 additions and 7 deletions
+2 -1
View File
@@ -22,7 +22,7 @@ private:
float controllerUpOffsetCorrection = 0.062f; // Controller touchpad facing upwards
float controllerDownOffsetCorrection = 0.006f; // Controller touchpad facing downwards
int state = 0; // 0 .. idle, 1 .. measurement in progress
int state = 0; // 0 .. idle, 1 .. floor fix in progress, 2 .. recenter in progress
vr::TrackedDeviceIndex_t referenceController = vr::k_unTrackedDeviceIndexInvalid;
unsigned measurementCount = 0;
double tempOffsetX = 0.0;
@@ -50,6 +50,7 @@ public:
public slots:
void fixFloorClicked();
void recenterClicked();
void undoFixFloorClicked();
void setCanUndo(bool value, bool notify = true);