Ejemplo n.º 1
0
        //!
        //! dual touch ended (called by Mouse or Touch Input)
        //! @param      pos     screen position of pointer
        //!
        public void twoPointerEnded(Vector3 pos)
        {
            if (!pointerOnGUI())
            {
                camMovePos = Vector3.zero;

                // HACK: to key in linktocamera mode
                //
                //if (mainController.ActiveMode == MainController.Mode.objectLinkCamera && mainController.UIAdapter.LayoutUI == layouts.ANIMATION)
                //    mainController.AnimationController.setKeyFrame();


                // save the camera offset to restore it next time the app is started
                mainController.saveCameraOffset();
            }
        }
Ejemplo n.º 2
0
        //!
        //! dual touch ended (called by Mouse or Touch Input)
        //! @param      pos     screen position of pointer
        //!
        public void twoPointerEnded(Vector3 pos)
        {
            if (mainController.ActiveMode == MainController.Mode.oneForAllMode)
            {
                hitPositionBuffer = nullVector;
                undoRedoController.addAction();
            }
            else
            {
                camMovePos = Vector3.zero;
                undoRedoController.addAction();
            }

            // save the camera offset to restore it next time the app is started
            mainController.saveCameraOffset();
        }