Hi there,
I am currently at a block I can’t get my head around: How do you set up a menu to be controlled witch a gamepad?
Normally, I would do it by selecting the first button as soon as a player moves the stick and let Unreal’s navigation do the rest, but I can’t find a way to do that. Do I have to write my own buttons for this?
Thanks in advance!
Update: SetKeyboardFocus() on one of the UButtons does the trick when it comes to selection and using the button, but is there a way to make it hovered?
I found something in the Unreal forum. The problem is that they suggest to add something to the engine code in the SWidget.h. This can’t be the only way right?
/** @return True if this widget hovered */
virtual bool IsHovered() const
{
return bIsHovered || HasKeyboardFocus();
}