I have a custom widget that tracks the current button for gamepad navigation in a CurrentButton variable. Gamepad navigation works.
However, when a button is hovered with the mouse, I want to do assign that hovered button to the CurrentButton variable so that the next time I switch to my gamepad, navigation starts from there and not from the previously selected button.
No Tick stuff and no custom button wanted. I want to do everything in the widget (specifically it is not a widget but a custom navigation class).
I couldn’t get OnHovered delegates to take the hovered button as a parameter. Might just be too dumb.
That description is a simplification. My navigation system is much more complex and revolves around tracking that CurrentButton variable and I am very proud to not having to use Tick events to track focused state or sth.