Hi, I'm currently implementing rebinding and want to implement a whitelist for a specified range of keys that are allowed. I am wondering, if there is a way for me to get the "generic" alias of an InputControl?
For example, when I try to rebind to "Start" on my Xbox Gamepad, I receive an InputControl with the path /XInputControllerWindows/start. However I want the generic version, so /Gamepad/start. In the InputAction editor window I found a list of "Derived Bindings" next to the path, which seems like exactly what I want. I attached a screenshot.
I could also only check against "inputControl.name" instead of "path", since it always seems to be "start". However I'm not sure if there are exceptions for other controllers, where the name is not always identical. But I suppose I'm just checking for inputControl.name instead of inputControl.path is the way to go? Thanks!
Edit: .name doesn't cut it, because of composite controls like /device/dpad/left only returning left. I think i need to cut off the first part: private static string GetGenericControlPath(InputControl c) => c.path[c.path.IndexOf('/', 1)..];

