# InputAxis stops working after clicking Widget button

**URL:** <https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608>\
**Category:** UI\
**Tags:** axis-mappings, unreal-engine, Widget, question\
**Created:** [June 30, 2015, 9:19pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608 "2015-06-30T21:19:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uggly\_Owliiver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uggly\_Owliiver](https://forums.unrealengine.com/u/Uggly_Owliiver)\
**Post date:** [June 30, 2015, 9:19pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/1 "2015-06-30T21:19:47Z")

</div>

When I hold W (moving forward) and press a widget button my player character (Third person template) stops, and the button does not work, until I press it again. This does not happen if I am normally walking though, only if im jumping AND I started holding down the W-Key before i pressed the space button.

In other words, I must have jumped before I press W to move, then it works. So something with my jump might mess things up.

Also, if I am at the menu and hold leftclick on the widget button, my character slows down untill he stops. If I let go (complete the “press of leftclick”) he starts moving again.

---

<div class="post-metadata">

**Author:** ![Uggly\_Owliiver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uggly\_Owliiver](https://forums.unrealengine.com/u/Uggly_Owliiver)\
**Post date:** [July 1, 2015, 8:35am UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/2 "2015-07-01T08:35:41Z")

</div>

Even if I remove “input mode UI only” the character stops (the button im holding is “not pressed” even if it is). Ill keep playing around with it but this is strange, im probably missing something.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8ab0a0961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8ab0a0961](https://forums.unrealengine.com/u/anonymous_user_8ab0a0961)\
**Post date:** [July 1, 2015, 8:50am UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/3 "2015-07-01T08:50:31Z")

</div>

I guess thats because you set the input mode, which disables input for gui/game. It’s actually no suprise you need to press the button again.

---

<div class="post-metadata">

**Author:** ![Uggly\_Owliiver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uggly\_Owliiver](https://forums.unrealengine.com/u/Uggly_Owliiver)\
**Post date:** [July 1, 2015, 10:02am UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/4 "2015-07-01T10:02:31Z")

</div>

I thought so aswell, but I removed it and tried, same thing. I also removed it and set input mode to “game and UI”, but I hade the same result ☹

---

<div class="post-metadata">

**Author:** ![Uggly\_Owliiver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uggly\_Owliiver](https://forums.unrealengine.com/u/Uggly_Owliiver)\
**Post date:** [July 1, 2015, 2:52pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/5 "2015-07-01T14:52:43Z")

</div>

I gathered a bit more info, I edited the original.

---

<div class="post-metadata">

**Author:** ![Elewyth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elewyth](https://forums.unrealengine.com/u/Elewyth)\
**Post date:** [September 4, 2015, 7:39pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/6 "2015-09-04T19:39:44Z")

</div>

I’m experiencing the same problem, although not related to jumping. Have you made any progress in this matter?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a6343215](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a6343215](https://forums.unrealengine.com/u/anonymous_user_a6343215)\
**Post date:** [September 20, 2016, 12:27pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/7 "2016-09-20T12:27:11Z")

</div>

Hello, I encountered similar problem. Did you maybe remember how you have solved it? 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c62419a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c62419a](https://forums.unrealengine.com/u/anonymous_user_0c62419a)\
**Post date:** [September 20, 2016, 2:28pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/8 "2016-09-20T14:28:10Z")

</div>

Hi ,

This issue may be resolved a few ways depending on your situation. Here is what I think may be going on here. If your mouse is made visible while interacting with the widget this will stop axis input from the mouse.

Regarding the W key think of this as a one off event that turns to positive 1 when pressed and 0 when released if you click on a widget this input get set to 0 and you must press the W key again to reset it back to 1.

hope that helps,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a6343215](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a6343215](https://forums.unrealengine.com/u/anonymous_user_a6343215)\
**Post date:** [September 20, 2016, 6:06pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/9 "2016-09-20T18:06:50Z")

</div>

Yea, at this point I figurated the second part out. Now I am searching the exact line in code where it loses it. The widget gets all of the control through function `static void SetInputMode_GameAndUI(APlayerController* Target, UWidget* InWidgetToFocus = nullptr, bool bLockMouseToViewport = false, bool bHideCursorDuringCapture = true);` The funny part is that if I press to move while in widget and then click mouse hero doesn’t lose input. So I assume that the previous input remains until new come and if widget can’t use it then it try level lower because if I click to move in some direction then he moves and after click at widget hero doesn’t stop.  
But even if I detect which keys were pressed I can’t simulate clicking them, right?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c62419a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c62419a](https://forums.unrealengine.com/u/anonymous_user_0c62419a)\
**Post date:** [September 21, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/10 "2016-09-21T13:38:23Z")

</div>

Before I continue could you let me know what engine version you are using?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a6343215](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a6343215](https://forums.unrealengine.com/u/anonymous_user_a6343215)\
**Post date:** [September 22, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/11 "2016-09-22T17:05:18Z")

</div>

Sure. It is 4.12.5

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c62419a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c62419a](https://forums.unrealengine.com/u/anonymous_user_0c62419a)\
**Post date:** [September 22, 2016, 5:36pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/12 "2016-09-22T17:36:24Z")

</div>

Thank you for the clarification ,

To solve the issue of a keyboard input getting interrupted you need to uncheck “Is Focusable” in the details panel for the button inside the Widget BP. (see screenshot)

 ![108111-isfocusable.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/1/ed1cfd44f52cf783404edd9a91b60ab22c7d874d.jpeg)

This will allow you to still click the button but also maintain keyboard inputs at the same time.

Let me know if that helps,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a6343215](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a6343215](https://forums.unrealengine.com/u/anonymous_user_a6343215)\
**Post date:** [September 23, 2016, 4:35pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/13 "2016-09-23T16:35:16Z")

</div>

Yea, Thank you so much! (Maybe you will know answer to my next issue :D)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [April 10, 2018, 5:13pm UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/14 "2018-04-10T17:13:00Z")

</div>

Thank you! I was trying to figure out why my player kept stopping when they pressed on a UMG widget button inside their inventory. It was frustrating because if the player was running away from enemies and opened their inventory to drink a potion they would stop and the enemies would catch up and kill them. This solves my issue so the player keeps moving while pressing the buttons inside the inventory.

---

<div class="post-metadata">

**Author:** ![StBlueFire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stbluefire/32/641418_2.png) [@StBlueFire](https://forums.unrealengine.com/u/StBlueFire)\
**Post date:** [October 19, 2024, 1:19am UTC](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/15 "2024-10-19T01:19:06Z")

</div>

Same behavior in 5.3 for anyone wondering. Thanks for letting us know!
