private void DoControllerEnabled(object sender, ControllerInteractionEventArgs e) { if (logAllEvents) { DebugLogger(VRTK_ControllerReference.GetRealIndex(e.controllerReference), "CONTROLLER STATE", "ENABLED", e); } controller = e.controllerReference.actual; hand = e.controllerReference.hand == SDK_BaseController.ControllerHand.Left ? VRManager.Hand.left : e.controllerReference.hand == SDK_BaseController.ControllerHand.Right ? VRManager.Hand.right : VRManager.Hand.undefined; }
private void DoControllerDisabled(object sender, ControllerInteractionEventArgs e) { DebugLogger(VRTK_ControllerReference.GetRealIndex(e.controllerReference), "CONTROLLER STATE", "DISABLED", e); controller = null; hand = VRManager.Hand.undefined; }