Default behaviour is to assign controller number in the order of connection.
You could use the @meleu 's joystick-selection script (available from experimental packages) to map your controllers by core (ie snes pad for snes games).
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.