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