Exemplo n.º 1
0
        private void SKElement_MouseUp(object?sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (e.ChangedButton != System.Windows.Input.MouseButton.Left)
            {
                return;
            }

            var mousePos = e.GetPosition(_gameElement);

            _interactionManager.PointerRelease((int)mousePos.X, (int)mousePos.Y);
        }
Exemplo n.º 2
0
 private void SKControl_MouseUp(object?sender, MouseEventArgs e)
 {
     _interactionManager.PointerRelease(e.X, e.Y);
 }
Exemplo n.º 3
0
 public override void EndInteraction(PointF[] points)
 => _interactionManager.PointerRelease((int)points[0].X, (int)points[0].Y);