Cascade.TouchPoint.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        public void Update()
        {
            lastPos2 = lastPos;
            lastPos = Position;
            if (State == TouchState.Moved)
            {
                if ((lastPos - lastPos2).Length() < 30 && !checkForHold)
                {

                    holdStartPosition = lastPos;
                    checkForHold = true;
                    holding = false;
                    holdTimer = 0;

                }

                if (checkForHold)
                {
                    if ((holdStartPosition - lastPos).Length() < 30)
                    {
                        holdTimer++;
                        if (holdTimer > 30)
                        {
                            holding = true;
                        }
                    }
                    else
                    {
                        checkForHold = false;
                        holding = false;
                        holdTimer = 0;
                    }
                }
                
            }
            //Global.Output += State + ", " + holdTimer;
            Timer++;
            if (State == TouchState.Touched)
                State = TouchState.Moved;
            else if (State == TouchState.Released)
                State = TouchState.None;
            
        }
        public void SetArgs(TouchEventArgs e)