How to disable mouse input for the entire game?

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!

1 Like

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

2 Likes

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!