Common UI Bound Actions and Action Bar on gamepad and Keyboard-mouse input

Hello fellow developers! I’m learning CommonUI i Enchanced Input System to build a menu system that can be easely operated via keyboard and mouse, and gamepad. So far so good, but I have stuck on issue with nature of Common Bound Action Input and Action Bar.

I have created a Bottom HorizontalBox in which I have put BoundActions (SaveSlot, Load Slot, DeleteSlot) and ActionBar.

After I push Save Menu to stack I call function sending ‘name’ variable of Tab ID (I use this Interface in option screens that contain Tab List or submenus) to setup Title and Mapping Context for this menu screen:

When i run the game on gamepad it works perfect. Action bar shows only those bound actions that I have in added Mapping Context (SaveMenu or LoadMenu) and Back Handler Button.

Yet on keybaord all bound actions are visible but those not being in Mapping Context Have noAction Input icon, but text remains :confused:

In other words I do not know how to hide Action Input text like on gamepad.
I have been trying this bool On/Off but in vain

It seems like a bug. I haven’t tried 5.7 if it is happening or not yet. Has anyone same issue and got it working? Thanks in advance!

Hello @pshmslv ,
You could try the following to check if the issue is caused by duplicated IMCs, Here’s a simple example of how that logic could look:

In the BP_PlayerController, there’s an IMC_Default, which is the default input mapping.


So, when you create your UI, you should remove the IMC_Default and add the new one in this case, IMC_MenuLoad.
Then, when switching to the save menu (SaveGame), which uses a different IMC, make sure to remove the previous one before adding the new one, otherwise both IMCs will remain active and the inputs might overlap.

Finally, when closing the UI and returning control to the game, you should restore the IMC_Default.

Hope it helps!