Button press event based UI?

Hi! Currently all my widgets use tick and continously check for which widget is in focus for hover, click etc for updates. Obviously this is not optimal and I only need to update whenever a player presses any key.

I’ve tried replacing it with button events and the any key event, but it’s super unreliable. Only occationally updating and not properly detecting gamepad stick inputs. So I’m obviously going about it the wrong way. What would be the proper way to do it?

You can use ListerForInputAction for actions, but unfortunately there’s no such thing for axis inputs.
I’d suggest handling inputs in the controller and call respective functions in widgets, instead of enabling input in widgets.

3 Likes

I see, thanks! I haven’t really had to dive into the controller yet in this project, but I’ll do so soon then!