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