# Button press event based UI?

**URL:** <https://forums.unrealengine.com/t/button-press-event-based-ui/555355>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [May 12, 2022, 10:01am UTC](https://forums.unrealengine.com/t/button-press-event-based-ui/555355 "2022-05-12T10:01:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graylord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Graylord](https://forums.unrealengine.com/u/Graylord)\
**Post date:** [May 12, 2022, 10:01am UTC](https://forums.unrealengine.com/t/button-press-event-based-ui/555355/1 "2022-05-12T10:01:02Z")

</div>

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?

 ![2022-05-12 11_58_06-OptionsMenu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/4/c54c2b26c17d9f580423bc188265c236924bfa62.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [May 12, 2022, 10:07am UTC](https://forums.unrealengine.com/t/button-press-event-based-ui/555355/2 "2022-05-12T10:07:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Graylord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Graylord](https://forums.unrealengine.com/u/Graylord)\
**Post date:** [May 13, 2022, 12:31pm UTC](https://forums.unrealengine.com/t/button-press-event-based-ui/555355/3 "2022-05-13T12:31:25Z")

</div>

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