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

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

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