I was doing some tests with SFML2 and noticed my Xbox controller always appears as joystick #0. My Logitech controller always appears as joystick #2.
This is not a problem, I was just curious: how does joystick enumeration work? That is, what determines what joystick becomes joystick #0 and joystick #1?