Common UI widget with trigger type?

Hello,
Im working on showing next possible combo inputs for my game.

Im using Enhanced Input and Common UI plugin though, it seems just showing widget by mapping key only, not by trigger type.

Say I triggered X button press to attack, now next combo input is to release the X button.

So Id like to show press X button image first, then release X button image.

But UCommonInputBaseControllerData only checks Key Enum value only.

I believe there must be some demands like showing difference images by trigger type(not only pressed, hold, release, tab, etc.), but I cannot find a way.

Wating for yout advice or plugin to solve this problem.

Thanks!

Hello! Looking into it, I found in the InputMappingContext.h file you can get the all the mappings or a specific mapping in the code with these two functions here.

In the FEnhancedActionKeyMapping struct you can then check the Triggers array to see what inputs trigger that mapping.

I believe if you get a reference to your IMC you can check the triggers that way, so you can display the information more to your liking.

I hope this helps you! :smiley:

1 Like