private bool hasPressedUp() { bool flag = InputWrapper.GetMouseButtonUp(0); if (UnityEngine.Input.touchSupported && !flag) { flag = InputWrapper.touchCount > 0 && InputWrapper.GetTouch(0).phase == TouchPhase.Ended; } return(flag); }
private TouchPhaseExtended getTouchPhase(out Vector3 touchPosition) { TouchPhaseExtended touchPhaseExtended = TouchPhaseExtended.NoEvent; touchPhaseExtended = ((!InputWrapper.GetMouseButtonDown(0)) ? (InputWrapper.GetMouseButton(0) ? TouchPhaseExtended.Moved : ((!InputWrapper.GetMouseButtonUp(0)) ? TouchPhaseExtended.Mouse : TouchPhaseExtended.Ended)) : TouchPhaseExtended.Began); if (UnityEngine.Input.touchSupported && InputWrapper.touchCount > 0) { touchPhaseExtended = (TouchPhaseExtended)InputWrapper.GetTouch(0).phase; touchPosition = InputWrapper.GetTouch(0).position; } else { touchPosition = InputWrapper.mousePosition; } return(touchPhaseExtended); }