How do you find the name of a controller on button press

Hey everyone. Thanks for reading my question. I am trying to do some stuff with custom button mapping and I would like to have it so when the player presses a button on the start screen, the game would know what controller they used to press that button. I can use Input.GetJoystickNames to get a list of the attached controllers, but I don’t know which one actually pressed the button.

If you know how to do this, or something like it, I would really appreciate it.

Thanks!

I’ve not used it personally, but I hear very good things about InControl and I think it would do that for you (although you’d have to rewrite all your input code to use it, but apparently it’s well worth the small effort).