void MyDragDrop(UIDragEventArgs args) { if (Debug) { Console.WriteLine($"DZ:{DataItem} DROP"); } IsDropTarget = false; OnDragDrop?.Invoke(args, DataItem); }
static void Update(float Dt) { Glfw.PollEvents(); Glfw.GetCursorPos(Window, out double CurX, out double CurY); Vector2 CurMousePos = new Vector2((float)CurX, (float)CurY); MouseDelta = CurMousePos - MousePos; MousePos = CurMousePos; if (DragDropPaths != null) { OnDragDrop?.Invoke(DragDropPaths); DragDropPaths = null; } UpdatePhysics(Dt); UpdateEntities(Dt); Game.Update(Dt); }
public void DragDrop(object sender, DragEventArgs e) { OnDragDrop?.Invoke(sender, e); }