# How to disable mouse input for the entire game?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-mouse-input-for-the-entire-game/766571>\
**Category:** Programming & Scripting\
**Tags:** Input, unreal-engine, Widget\
**Created:** [February 8, 2023, 5:14pm UTC](https://forums.unrealengine.com/t/how-to-disable-mouse-input-for-the-entire-game/766571 "2023-02-08T17:14:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KT\_Grizzly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KT\_Grizzly](https://forums.unrealengine.com/u/KT_Grizzly)\
**Post date:** [February 8, 2023, 5:14pm UTC](https://forums.unrealengine.com/t/how-to-disable-mouse-input-for-the-entire-game/766571/1 "2023-02-08T17:14:47Z")

</div>

I am having a lot of issues with mouse input interrupting my UI focus and making my menus unusable with keyboard or controller.  
Is it possible to just completely remove all mouse input from the entire game?  
If not, is there a best practice on what type of gamemode or pawn to use in menu levels to avoid input removing focus from UI elements?  
Thanks!

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [February 8, 2023, 5:53pm UTC](https://forums.unrealengine.com/t/how-to-disable-mouse-input-for-the-entire-game/766571/2 "2023-02-08T17:53:54Z")

</div>

If I understood the problem correctly, you can use these Player Controller functions:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/b/b4bd18e151b83ac7a16a8780776861dac7eabf34.png)

---

<div class="post-metadata">

**Author:** ![KT\_Grizzly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KT\_Grizzly](https://forums.unrealengine.com/u/KT_Grizzly)\
**Post date:** [February 10, 2023, 5:00am UTC](https://forums.unrealengine.com/t/how-to-disable-mouse-input-for-the-entire-game/766571/3 "2023-02-10T05:00:11Z")

</div>

Thanks for help!  
I was already using the “Set Input Mode Game Only” node but I noticed you are using “Get Owning Player” to get the PlayerController. ( I am using GetPlayerController by Index node)  
Do I need to set the PlayerController first in the Widget somewhere before I use that node?  
Thanks!
