Esempio n. 1
0
        public void Set(Pax4TouchState p_touchState = null)
        {
            if (p_touchState == null)
            {
                return;
            }

            _state = p_touchState._state;

            _xy   = p_touchState._xy;
            _dxdy = p_touchState._dxdy;

            _oneTap = p_touchState._oneTap;

            _oneTouch = p_touchState._oneTouch;
            _twoTouch = p_touchState._twoTouch;

#if !WINDOWS_MOUSE
            _twoTouchDistance = p_touchState._twoTouchDistance;

            _twoTap         = p_touchState._twoTap;
            _twoTapDistance = p_touchState._twoTapDistance;

            _pinch   = p_touchState._pinch;
            _unPinch = p_touchState._unPinch;
#else
            _leftDown   = p_touchState._leftDown;
            _rightDown  = p_touchState._rightDown;
            _middleDown = p_touchState._middleDown;
            _x1Down     = p_touchState._x1Down;
            _x2Down     = p_touchState._x2Down;

            _leftUp   = p_touchState._leftUp;
            _rightUp  = p_touchState._rightUp;
            _middleUp = p_touchState._middleUp;
            _x1Up     = p_touchState._x1Up;
            _x2Up     = p_touchState._x2Up;

            _rightClick  = p_touchState._rightClick;
            _middleClick = p_touchState._middleClick;
            _x1Click     = p_touchState._x1Click;
            _x2Click     = p_touchState._x2Click;

            _leftDoubleClick   = p_touchState._leftDoubleClick;
            _rightDoubleClick  = p_touchState._rightDoubleClick;
            _middleDoubleClick = p_touchState._middleDoubleClick;
            _x1DoubleClick     = p_touchState._x1DoubleClick;
            _x2DoubleClick     = p_touchState._x2DoubleClick;

            _wheelUp    = p_touchState._wheelUp;
            _wheelDown  = p_touchState._wheelDown;
            _wheelValue = p_touchState._wheelValue;
#endif

            _clean    = p_touchState._clean;
            _oneFlick = p_touchState._oneFlick;
        }
Esempio n. 2
0
 public void Reset()
 {
     _currentTouchState   = new Pax4TouchState("", null);
     _previousTouchState  = new Pax4TouchState("", null);
     _previousTouchState0 = new Pax4TouchState("", null);
 }