Esempio n. 1
0
        public virtual void MouseMoved(GameTouch e)
        {
            /*if (isLock || isClose || !isLoad)
             * {
             *      return;
             * }*/
            if (isTranslate)
            {
                e.Offset(tx, ty);
            }
            TouchMove(e);

            /*if (!isClickLimit(e))
             * {
             *      updateTouchArea(LTouchArea_Event.MOVE, e.X, e.Y);
             *      touchMove(e);
             * }*/
        }
Esempio n. 2
0
        public virtual void MouseReleased(GameTouch e)
        {
            /*if (isLock || isClose || !isLoad)
             * {
             *      return;
             * }*/
            if (isTranslate)
            {
                e.Offset(tx, ty);
            }
            int type   = e.Type;
            int button = e.GetButton();

            try
            {
                touchType.Put(type, false);
                touchButtonReleased = button;
                touchButtonPressed  = SysInput_Item.NO_BUTTON;
                TouchUp(e);

                /*if (!isClickLimit(e))
                 * {
                 *      updateTouchArea(LTouchArea_Event.UP, e.X, e.Y);
                 *      touchUp(e);
                 *      if (_touchListener != null && desktop != null)
                 *      {
                 *              _touchListener.UpClick(desktop.SelectedComponent, e.X, e.Y);
                 *      }
                 * }*/
                _lastTocuh.Set(e.X(), e.Y());
            }
            catch (System.Exception ex)
            {
                touchButtonPressed  = SysInput_Item.NO_BUTTON;
                touchButtonReleased = SysInput_Item.NO_BUTTON;
                //Error("Screen mouseReleased() exception", ex);
            }
        }
Esempio n. 3
0
        public virtual void MouseDragged(GameTouch e)
        {
            /*if (isLock || isClose || !isLoad)
             * {
             *      return;
             * }*/
            if (isTranslate)
            {
                e.Offset(tx, ty);
            }
            TouchDrag(e);

            /*if (!isClickLimit(e))
             * {
             *      updateTouchArea(LTouchArea_Event.DRAG, e.X, e.Y);
             *      touchDrag(e);
             *      if (_touchListener != null && desktop != null)
             *      {
             *              _touchListener.DragClick(desktop.SelectedComponent, e.X, e.Y);
             *      }
             * }*/
            _lastTocuh.Set(e.X(), e.Y());
        }