void GetInput() { //filling the values for our input variables if (!editingSettings) { if (!mobile.useMobileInput) { try { mouseOrbitInput = Input.GetAxisRaw(input.MOUSE_ORBIT); } catch (System.Exception) { Debug.Log("Invalid orbit input. Please insert a valid value such as Fire1"); } zoomInput = Input.GetAxisRaw(input.ZOOM); } else { multiTouch.UpdateMultiTouchInput(); zoomInput = -multiTouch.PinchInput; mouseOrbitInput = multiTouch.SpinInput; } } }
void GetInput() { //responsible for setting our input variables if (!editingSettings) { if (!mobile.useMobileInput) { try{ panInput = Input.GetAxis(input.PAN); } catch (System.Exception) { Debug.Log("Invalid pan input. Please insert a valid value such as Fire1"); } try { orbitInput = Input.GetAxis(input.ORBIT_Y); } catch (System.Exception) { Debug.Log("Invalid orbit input. Please insert a valid value such as Fire2"); } zoomInput = Input.GetAxis(input.ZOOM); } else { singleTouch.UpdateTouchInput(); multiTouch.UpdateMultiTouchInput(); zoomInput = -multiTouch.PinchInput; orbitInput = multiTouch.SpinInput; } } }