private void OnMouseUp(object sender, TkMouseArgs args) { if (TopScreen == null) { return; } MouseButton buttons = MouseButton.None; if (args.Mouse.IsButtonUp(TkMouseButton.Left) && (_mouseButtons & MouseButton.Left) > 0) { buttons |= MouseButton.Left; } if (args.Mouse.IsButtonUp(TkMouseButton.Right) && (_mouseButtons & MouseButton.Right) > 0) { buttons |= MouseButton.Right; } TopScreen.MouseUp(new ScreenEventArgs(_mouseX, _mouseY, buttons)); }
private void OnMouseUp(object sender, ScreenEventArgs args) => TopScreen?.MouseUp(args);