# Long UI button press problems

**URL:** <https://forums.unrealengine.com/t/long-ui-button-press-problems/553225>\
**Category:** UI\
**Tags:** UE4-21, unreal-engine, question, Blueprint, UMG\
**Created:** [May 10, 2022, 1:41am UTC](https://forums.unrealengine.com/t/long-ui-button-press-problems/553225 "2022-05-10T01:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sha1l](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sha1l](https://forums.unrealengine.com/u/Sha1l)\
**Post date:** [May 10, 2022, 1:41am UTC](https://forums.unrealengine.com/t/long-ui-button-press-problems/553225/1 "2022-05-10T01:41:33Z")

</div>

I want to call a (movement)function from my default pawn class as long as i pressing (with mouse) UI button, but it calls(successfully) only once and not continuing. Function could be re-called one more time if i press button again.  
But i need it to be constantly called while i pressing this button.  
button event:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/d/c4d65051c0270a53ff539238f741e67014f0285e.png)  
the function itself:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/b/bab0c9c6e4c02c20065698f1195016bb53a4bfed.png)  
Have no idea whats i’m doing wrong 🤔

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [May 10, 2022, 3:54am UTC](https://forums.unrealengine.com/t/long-ui-button-press-problems/553225/2 "2022-05-10T03:54:18Z")

</div>

Hi Sha1l,

The pressed event only gets triggered once per press. There are a few ways to get multiple triggers - the easiest is to have a bool that you set to True on Pressed, and False on Released.  
Then in your Tick event you can do your processing when the bool is True.
