Ejemplo n.º 1
0
 public void MouseDown(Vector2 point)
 {
     _intersected = Intersect(point);
     if (_intersected == null) return;
     _startDrag = point;
     _lastDrag = point;
     _intersected.MouseDown(point);
 }
Ejemplo n.º 2
0
 public void MouseUp(Vector2 point)
 {
     if (_intersected != null)
     {
         _isDragging = false;
         _intersected.StopDrag(point);
         _intersected.MouseUp(point);
     }
     _intersected = null;
 }