Renaming Keys

If I press a face button on an Xbox 360 Controller using an Input Key Selector, they key is named something like “Gamepad Face Button Left” instead of “X”.

Is there any way to give it a prettier name? Preferably one I can define myself. I need to rename the key, or make a fake one, because I can’t set the text of an Input Key Selector manually.

2 Ways off the top of my head.

1 - Open up the engine code and rename it to what you need it to be… specifically the “Gamepad_FaceButton_Left”

Begin Object Class=/Script/BlueprintGraph.K2Node_InputKey Name=“K2Node_InputKey_2”
InputKey=Gamepad_FaceButton_Left

2- Quick and Dirty Hack:
Create a Custom Event, call it X or X Button ect, then set Gampad button to call that event.
So when

286135-button.png

The second one won’t affect the button name in Input key Selector. The first one would work, but unfortunately I’m not compiling UE4 from source. I did find the files, but changing the source code in a pre-compiled engine doesn’t do anything.

It did lead me to another clue though, I think maybe I can use localization to achieve what I’m looking for, since all the input names seem to be localized.

Add an action mapping in project settings → input (under engine). Create a new action binding and name it “Controller X Button” or whatever you want, and add the mapping of gamepad face button left.

I’m sorry, but this doesn’t answer the question. I’m not asking asking how to make input events with custom names, I’m asking how to literally rename the inputs. Try making a widget blueprint and add an Input Key Selector to the canvas. This widget reads input and then sets its button text to whatever name the engine has set for that input event. Making an input mapping in the project settings does not change this.

Were you able to resolve the issue? For me even changing the language won’t change the “Gamepad Face Button Left” or “Left Shift”.

  1. Where I can find localized versions of each input? I think they should be in the engine somewhere,
  2. Is Input Key Selector supporting loc? From the source I can see each key have it’s own FText but not sure where the localization is done…