Exemplo n.º 1
0
        public static bool TouchedAcquired(Touch touch, ref bool insideUI)
        {
            VisualObject o = touch.Session.Acquired;

            (int saveX, int saveY) = o.AbsoluteXY();

            touch.MoveBack(saveX, saveY);
            bool inside = touch.Intersecting(0, 0, o.Width, o.Height);

            if (o.Active && inside)
            {
                insideUI = true;
            }
            if (o.Active && (inside || o.Configuration.UseOutsideTouches))
            {
                if (o.Touched(touch))
                {
                    return(true);
                }
            }

            touch.Move(saveX, saveY);
            return(false);
        }