예제 #1
0
        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));
        }
예제 #2
0
 private void OnMouseDown(object sender, ScreenEventArgs args) => TopScreen?.MouseDown(args);