Skip to main content
Participant
December 24, 2020

This snippet of code is working in Unity but not as a build on the Quest, any ideas would be great

        //////////////////////////   Right Thumbstick  ////////////////////////////////
        Vector2 secondaryThumbstick2dvalue;
        InputFeatureUsage<Vector2> secondaryThumbstick2dVector = CommonUsages.primary2DAxis;
        if (rightController.TryGetFeatureValue(secondaryThumbstick2dVector, out secondaryThumbstick2dvalue))
        {
            if (secondaryThumbstick2dvalue != Vector2.zero)
            {
                rightThumbstickValues = secondaryThumbstick2dvalue;
                GameMgr.inst.SetSecondaryStickDirection(rightThumbstickValues);

                rightControllerAnimate.SetStickRotation(rightThumbstickValues);
            }
            else
            {
                GameMgr.inst.ResetTurnLock();   // Never getting called in a build, (In Unity This works....  hmmm...) 
            }
        }