11-29-2016 12:11 AM
bool GetTouchControllerConnected()
{
OVRInput.Controller controllersConnected = OVRInput.GetConnectedControllers();
bool leftTouchConnected = (controllersConnected & OVRInput.Controller.LTouch) != OVRInput.Controller.None;
bool rightTouchConnected = (controllersConnected & OVRInput.Controller.RTouch) != OVRInput.Controller.None;
return leftTouchConnected && rightTouchConnected;
}
After one of the touch controllers gets disconnected due to battery problems, the variable controllersConnected still returns the value OVRInput.Controller.Touch (LTouch | RTouch), even if the Oculus Universal Menu says that one touch controller is missing.11-29-2016 09:35 AM