private void UpdateNew(float deltaTime) { Vector2 touch = VRInput.PadTouchValue(handType); float x = touch.x; float y = touch.y; if (VRInput.GetControlDown(handType, ControlType.DPadCenter)) { OnClickMiddle?.Invoke(x, y); return; } if (VRInput.GetControlDown(handType, ControlType.DPadNorth)) { OnClickUp?.Invoke(x, y); } else if (VRInput.GetControlDown(handType, ControlType.DPadSouth)) { OnClickDown?.Invoke(x, y); } if (VRInput.GetControlDown(handType, ControlType.DPadWest)) { OnClickLeft?.Invoke(x, y); } else if (VRInput.GetControlDown(handType, ControlType.DPadEast)) { OnClickRight?.Invoke(x, y); } }
private void TouchMiddle(float x, float y) { OnClickMiddle?.Invoke(x, y); }