cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to put touch controllers to sleep?

swanb1
Level 2
I'm developing for the quest and I am running into issues where the touch controller does not detect button release when both controllers are active. I'm using button.getup and I have noticed that if I have both controllers awake, the problem occurs where unity does not detect a button being released on the other controller. The problem however, does not happen if one of the controllers is asleep, so I was wondering if there is a way to manually put the controller to sleep. 
This is the code I'm using in Update-
        OVRInput.Update();
        LeftControllerObject.SetActive(false);
        if (OVRInput.Get(OVRInput.RawButton.A) && !RightTeleportPressedBoolean)
        {
            Controller_L.transform.GetChild(0).gameObject.SetActive(false);
            RightTeleportPressedBoolean = true;
            RightTeleportPress();
            Debug.Log("In get Down");
        }
        else if (!OVRInput.Get(OVRInput.RawButton.A) && RightTeleportPressedBoolean)
        {
            RightTeleportPressedBoolean = false;
            RightTeleportRelease();
            Debug.Log("In Get Up" );
        }
0 REPLIES 0