Forum Discussion
swanb1
6 years agoHonored Guest
Is there a way to put touch controllers to sleep?
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" );
}
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" );
}
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device