# Bug: Mouse Clicks not responding after set Input UI, then to Game

**URL:** <https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023>\
**Category:** UI\
**Tags:** unreal-engine, bug-report, UI, Blueprint, question, UMG\
**Created:** [April 22, 2016, 2:18am UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023 "2016-04-22T02:18:40Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![Pypatron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pypatron](https://forums.unrealengine.com/u/Pypatron)\
**Post date:** [February 26, 2017, 7:49am UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/21 "2017-02-26T07:49:57Z")

</div>

This node never helped me. There was 2 options that delete the bug:  
---- **Project Setting → Input → Viewport Property → Default Viewport Mouse Capture Mode → "CapturePermanently\_IncludingInitialMouseDown"**

or

---- in the Player Controller → Mouse Interface → set “Show Mouse Cursor” false

---

<div class="post-metadata">

**Author:** ![Agreyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Agreyz](https://forums.unrealengine.com/u/Agreyz)\
**Post date:** [July 2, 2017, 12:45am UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/22 "2017-07-02T00:45:18Z")

</div>

Hi,

I look at the bug report and it says this bug has been resolved, but I am having the same issue in 4.16 right now.  
What I have is a MainMenu level with a widget menu and player controller for that level with input mode set to ui only. I load my main level which is from the top-down template with OpenLevel node. Inside the OnBeginPlay event on my player controller for the main level I set input mode to game only and I need to double click to move my character. Interesting thing is that if I set the input mode to game and ui it works with single clicks. Just wanted to let you know the bug is still there.

---

<div class="post-metadata">

**Author:** ![NorlinGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/norlingames/32/495614_2.png) [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Post date:** [July 29, 2017, 7:11pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/23 "2017-07-29T19:11:06Z")

</div>

Have you found any solution for this issue? I’ve also faced with it in 4.16.2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 4, 2017, 5:41pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/24 "2017-08-04T17:41:55Z")

</div>

Hello norlin,

I ran through the steps in the issue reported above and was able to reproduce this issue in 4.17. I have reopened this issue. Feel free to use the link below for future updates.

Link: [Unreal Engine Issues and Bug Tracker (UE-36760)](https://issues.unrealengine.com/issue/UE-36760)

Make it a great day

---

<div class="post-metadata">

**Author:** ![benjaml](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@benjaml](https://forums.unrealengine.com/u/benjaml)\
**Post date:** [January 29, 2018, 9:58am UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/25 "2018-01-29T09:58:21Z")

</div>

I’m also facing this issue in 4.18.1, after a few diging, I’ve found a quick solution. In PlayerController.h

```
/** Data structure used to setup an input mode that allows only the player input / player controller to respond to user input. */
struct ENGINE_API FInputModeGameOnly : FInputModeDataBase
{
	/** Whether the mouse down that causes capture should be consumed, and not passed to player input processing */
	FInputModeGameOnly& SetConsumeCaptureMouseDown(bool InConsumeCaptureMouseDown) { bConsumeCaptureMouseDown = InConsumeCaptureMouseDown; return *this; }

	FInputModeGameOnly()
		: bConsumeCaptureMouseDown(false)
	{}

protected:
	bool bConsumeCaptureMouseDown;

	virtual void ApplyInputMode(FReply& SlateOperations, class UGameViewportClient& GameViewportClient) const override;
};

```

I’ve changed

```
FInputModeGameOnly()
         : bConsumeCaptureMouseDown(true)
     {}

```

to

```
 FInputModeGameOnly()
         : bConsumeCaptureMouseDown(false)
     {}

```

This might be a dirty patch but for me it does the trick

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b3a426ff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b3a426ff1](https://forums.unrealengine.com/u/anonymous_user_b3a426ff1)\
**Post date:** [August 14, 2018, 11:11pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/26 "2018-08-14T23:11:57Z")

</div>

Is there any update to the status on this? I can still reproduce this in 4.20 and it’s a real pain in the rear of my project in 4.19  
.

---

<div class="post-metadata">

**Author:** ![megaxiphias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@megaxiphias](https://forums.unrealengine.com/u/megaxiphias)\
**Post date:** [February 3, 2019, 9:37am UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/27 "2019-02-03T09:37:15Z")

</div>

I am facing the same problem in a top-down shooter I am making, with the “Set input mode game only” enabled, I have to click multiple times for the character to shoot once, and this is in 4.21.2.

---

<div class="post-metadata">

**Author:** ![Flemmard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flemmard](https://forums.unrealengine.com/u/Flemmard)\
**Post date:** [March 13, 2019, 4:48pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/28 "2019-03-13T16:48:37Z")

</div>

Same in 4.21.2. Still trying to figure out a workaround …

---

<div class="post-metadata">

**Author:** ![Flemmard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flemmard](https://forums.unrealengine.com/u/Flemmard)\
**Post date:** [March 13, 2019, 5:02pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/29 "2019-03-13T17:02:59Z")

</div>

Looks even worse than that, seems like GetYaw/GetPitch stops being affected too … wth 😃

---

<div class="post-metadata">

**Author:** ![Flemmard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flemmard](https://forums.unrealengine.com/u/Flemmard)\
**Post date:** [March 13, 2019, 5:14pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/30 "2019-03-13T17:14:09Z")

</div>

And it’s still present in 4.22

---

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [August 12, 2019, 6:25pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/31 "2019-08-12T18:25:16Z")

</div>

I sort of found a workaround - at least it works for me

Use “Set Input Mode Game And UI” node instead of just “Set Input Mode Game”.  
Also, keep “In Widget to Focus” target unhooked.  
And uncheck “Hide Cursor During Capture”

 ![284857-input-mode.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/5/d15cf00bcc36edeac351f540991b2f3d0c4560a2.jpeg)

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [November 23, 2020, 6:50pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/32 "2020-11-23T18:50:48Z")

</div>

The workaround here from laggyluk worked for me.

> **[Cant hide Mouse Cursor again](https://forums.unrealengine.com/questions/727143/cant-hide-mouse-cursor-again.html)**
>
> i cant hide the mouse cursor again. neither ShowMouseCursor = False, nor SetHardwareCursor = None seems to work. well, sometimes it works, but most of the time it doesnt. i can move the mouse cursor around as much as i want, but nothing happens. the...

I hope it works for you too!

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [November 23, 2020, 6:51pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/33 "2020-11-23T18:51:22Z")

</div>

The workaround here from laggyluk worked for me.

> **[Cant hide Mouse Cursor again](https://forums.unrealengine.com/questions/727143/cant-hide-mouse-cursor-again.html)**
>
> i cant hide the mouse cursor again. neither ShowMouseCursor = False, nor SetHardwareCursor = None seems to work. well, sometimes it works, but most of the time it doesnt. i can move the mouse cursor around as much as i want, but nothing happens. the...

I hope it works for you too!

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [November 23, 2020, 6:52pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/34 "2020-11-23T18:52:06Z")

</div>

The workaround here from laggyluk worked for me.

> **[Cant hide Mouse Cursor again](https://forums.unrealengine.com/questions/727143/cant-hide-mouse-cursor-again.html)**
>
> i cant hide the mouse cursor again. neither ShowMouseCursor = False, nor SetHardwareCursor = None seems to work. well, sometimes it works, but most of the time it doesnt. i can move the mouse cursor around as much as i want, but nothing happens. the...

I hope it works for you too!

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [November 23, 2020, 6:53pm UTC](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023/35 "2020-11-23T18:53:05Z")

</div>

Just in case anyone would run into this, I’ll post this as an answer.  
The workaround here from laggyluk worked for me.

> **[Cant hide Mouse Cursor again](https://forums.unrealengine.com/questions/727143/cant-hide-mouse-cursor-again.html)**
>
> i cant hide the mouse cursor again. neither ShowMouseCursor = False, nor SetHardwareCursor = None seems to work. well, sometimes it works, but most of the time it doesnt. i can move the mouse cursor around as much as i want, but nothing happens. the...

[Previous page](https://forums.unrealengine.com/t/bug-mouse-clicks-not-responding-after-set-input-ui-then-to-game/355023.md?page=1)
