Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Joystick enumeration  (Read 1224 times)

0 Members and 1 Guest are viewing this topic.

Brendon

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
    • http://blendogames.com
Joystick enumeration
« 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?

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Joystick enumeration
« Reply #1 on: September 26, 2011, 11:12:01 pm »
I belive the OS decides that.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Joystick enumeration
« Reply #2 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.
Laurent Gomila - SFML developer