Exemplo n.º 1
0
        private void OnPointerDown(GuiPointerEventArgs args)
        {
            if (Screen == null)
            {
                return;
            }

            _preFocusedControl = FindControlAtPoint(Screen.Controls, args.Position);
            _hoveredControl?.OnPointerDown(args);
        }
Exemplo n.º 2
0
        private void OnPointerDown(GuiPointerEventArgs args)
        {
            if (ActiveScreen == null || !ActiveScreen.IsVisible)
            {
                return;
            }

            _preFocusedControl = FindControlAtPoint(args.Position);
            _hoveredControl?.OnPointerDown(this, args);
        }