Set Input Mode "Game & UI" with Common UI plugin

Are you talking about how the mouse isn’t visible if controller input is enabled? I don’t seem to have cursor issues myself. If I set the player controller to show the mouse, it shows. As soon as a controller input is pressed the mouse disappears. Then when I move the mouse again it shows.

I did notice also the mouse might appear even when you just activate a widget and you have to manually call set input mode to game only and hide the cursor.

For example I modified the lyra loading screen code to let the user push a button to close the loading screen so they can read some story text. Activating the loading screen widget so they can push the button forces the cursor to show and to not have game inputs come through without me ever having called those functions myself. After pushing continue I have to call set input mode Game Only again. I’m still a bit confused because a lot of this isn’t documented yet and you figure it out while debugging.

I haven’t seen exactly how to make Common UI manage the input mode unless you mean having the input type returned as Menu, All, Game from common activatable widgets? It does technically seem like a better way.

I also noticed Action Domain related settings in the common UI input settings. This is completely undocumented but it seems like a lot of the input mode handling is done through this?
https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonInput/Public/CommonInputSettings.h#L92

1 Like