Example #1
0
        void OnTouchEffectAction(object sender, TouchActionEventArgs args)
        {
            if (args.Type != TouchActionType.Pressed)
            {
                return;
            }

            var x = args.Location.X;
            var y = args.Location.Y;

            int outx;
            int outy;

            FindXY((int)x, (int)y, out outx, out outy);

            if (outx == -1 || outy == -1)
            {
                return;
            }

            aimx = outx;
            aimy = outy;

            UpdateAim();
        }
Example #2
0
 public void OnTouchAction(Element element, TouchActionEventArgs args)
 {
     TouchAction?.Invoke(element, args);
 }