mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Raise hover/unhover events on checkbox, this completes gamepad / keyboard navigation support
This commit is contained in:
parent
cf69450300
commit
19f1d3e9ac
@ -75,11 +75,14 @@ void SFocusableCheckBox::OnMouseEnter(const FGeometry& MyGeometry, const FPointe
|
|||||||
SCheckBox::OnMouseEnter(MyGeometry, MouseEvent);
|
SCheckBox::OnMouseEnter(MyGeometry, MouseEvent);
|
||||||
|
|
||||||
// SCheckbox doesn't have hovered / unhovered events so we need to add them
|
// SCheckbox doesn't have hovered / unhovered events so we need to add them
|
||||||
|
OnHoveredDelegate.ExecuteIfBound();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SFocusableCheckBox::OnMouseLeave(const FPointerEvent& MouseEvent)
|
void SFocusableCheckBox::OnMouseLeave(const FPointerEvent& MouseEvent)
|
||||||
{
|
{
|
||||||
SCheckBox::OnMouseLeave(MouseEvent);
|
SCheckBox::OnMouseLeave(MouseEvent);
|
||||||
|
|
||||||
|
OnUnhoveredDelegate.ExecuteIfBound();
|
||||||
}
|
}
|
||||||
|
|
||||||
FReply SFocusableCheckBox::OnFocusReceived(const FGeometry& MyGeometry, const FFocusEvent& InFocusEvent)
|
FReply SFocusableCheckBox::OnFocusReceived(const FGeometry& MyGeometry, const FFocusEvent& InFocusEvent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user