I am making a multiplayer couch game where multiple players can join (pretty much like Smash Bros). On the character select screen there are 6 player slots, and I need that when a player press the A/Cross button, he joins in. However, I don't know how to make the game automatically recognize the input from a specific api(Xinput or Dinput) and assign the inputs to that player controller. Not sure how to go about this.
I can elaborate if someone someone finds this confusing.