Raise hover/unhover events on checkbox, this completes gamepad / keyboard navigation support

This commit is contained in:
Steve Streeting 2021-03-02 16:00:08 +00:00
parent cf69450300
commit 19f1d3e9ac

View File

@ -75,11 +75,14 @@ void SFocusableCheckBox::OnMouseEnter(const FGeometry& MyGeometry, const FPointe
SCheckBox::OnMouseEnter(MyGeometry, MouseEvent);
// SCheckbox doesn't have hovered / unhovered events so we need to add them
OnHoveredDelegate.ExecuteIfBound();
}
void SFocusableCheckBox::OnMouseLeave(const FPointerEvent& MouseEvent)
{
SCheckBox::OnMouseLeave(MouseEvent);
OnUnhoveredDelegate.ExecuteIfBound();
}
FReply SFocusableCheckBox::OnFocusReceived(const FGeometry& MyGeometry, const FFocusEvent& InFocusEvent)