Download

How do you use the Input Key Selector in a c++ file?

I am currently attempting to create a c++ based system for rebinding my keys, but am having trouble implementing the Input key Selectors into it.

The Input Key Selectors for the record, is a UI widget that is used specifically for recieving a key input.

More specifically, I cant find a way to define it in my h file nor can I find any example of how I would pass the action/axis mapping and inputchord as arguments to the RemoveActionBinding function or the AddActionMapping function.

I have attempted to reverse engineer blueprints that can rebind keys in c++, but have not been able to find any examples of what the code should look like or been able to access the nodes source code and have a peek there.

Does anyone know how the Input Key Selector should be defined?

Thank You.