コード例 #1
0
        private void OnPointerDown(GuiPointerEventArgs args)
        {
            if (Screen == null)
            {
                return;
            }

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

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