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

I found that in the C++, there’s also something to do with UIInputConfigs in common UI.

This code thinks the UI is handling all keyboard events.
https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/CommonGameViewportClient.cpp#L65

Ultimately this is because the CommonUIActionRouterBase returns BlockGameInput here.
https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/Input/CommonUIActionRouterBase.cpp#L403

The UIInputConfig is somehow set to Menu instead of All. I saw that me calling Set game input mode to UI and Game doesn’t affect this. I’d assume this is a bug.

2 Likes