Added Knuckles FloorFix feature (prelim) (#100)
* added early knuckles support to floor fix. * removed commented out code * formatted
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user