IMPORTANT:

All Oculus Quest developers MUST PASS the concept review prior to gaining publishing access to the Quest Store and additional resources. Submit a concept document for review as early in your Quest application development cycle as possible: https://developer.oculus.com/quest-pitch/

For additional information and context, please see "Submitting Your App to the Oculus Quest Store".
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Is there a way to put touch controllers to sleep?

swanb1swanb1 Posts: 1
NerveGear
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" );
        }
Sign In or Register to comment.