Added Knuckles FloorFix feature (prelim) (#100)

* added early knuckles support to floor fix.

* removed commented out code

* formatted
This commit is contained in:
ykeara
2019-03-15 14:52:48 -05:00
committed by GitHub
parent 09b8458a57
commit 55b6d5de66
2 changed files with 103 additions and 4 deletions
@@ -25,6 +25,8 @@ private:
= 0.062f; // Controller touchpad facing upwards
float controllerDownOffsetCorrection
= 0.006f; // Controller touchpad facing downwards
float knucklesUpOffsetCorrection = 0.0285f; // touchpad facing up PRELIM
float knucklesDownOffsetCorrection = 0.031f; // touchpad facing down PRELIM
int state
= 0; // 0 .. idle, 1 .. floor fix in progress, 2 .. recenter in progress
@@ -42,6 +44,15 @@ private:
float statusMessageTimeout = 0.0f;
bool m_canUndo = false;
enum ControllerType : int
{
Controller_Unknown = 0,
Controller_Wand = 1,
Controller_Knuckles = 2,
};
int getControllerType( vr::TrackedDeviceIndex_t controllerRole );
public:
void initStage1();
void initStage2( OverlayController* parent, QQuickWindow* widget );