Get list of key/gamepad in an array in C++


The below article shows all the list of keys as understood by unreal engine.

Now i want to get a list of all keys in C++ through some method call , so that I can match the names with the input config file keys , to validate the current input value bound to a specific action , as obtained from the config file. Something like this :

GetConfigString(TEXT("/Script/Engine.InputSettings"), key, value1, GInputIni);

if(! GetAllkeys.Contains(value1)

SetConfigString(TEXT("/Script/Engine.InputSettings"), key, value2, GInputIni);

value1 = value2;


How to I do that?

Hi ,

I solved it out myself. I have to use this syntax to get if the key is valid