How to get icon for input action

Search sent me here looking for the same.
The CommonActionWidget failed for me for displaying the KeyboardsMouse data with Enhanced Input actions.

For the icon you can use
CommonUI->GetEnhancedInputActionButtonIcon()

If you are in C++

CommonUI::GetIconForEnhancedInputAction(GetInputSubsystem(), EnhancedInputAction);

Working in current project on 5.2 with player mappable keybindings and console/controller/pc support.

3 Likes