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; } contorlLogic.Board_MouseLeftButtonDown((int)outx + 1, (int)outy + 1); }
public void OnTouchAction(Element element, TouchActionEventArgs args) { TouchAction?.Invoke(element, args); }