SFML community forums

Help => Window => Topic started by: Brendon on September 26, 2011, 07:39:11 pm

Title: Joystick enumeration
Post by: Brendon on September 26, 2011, 07:39:11 pm
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?
Title: Joystick enumeration
Post by: Groogy on September 26, 2011, 11:12:01 pm
I belive the OS decides that.
Title: Joystick enumeration
Post by: Laurent on September 27, 2011, 09:15:15 pm
Absolutely. If your OS has a control panel for joysticks, you should see the exact same setup.