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

Author Topic: Number of gamepads  (Read 1691 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 1
    • View Profile
Number of gamepads
« on: September 03, 2009, 10:14:12 pm »
Hi, I want to make a game controlled by more than two gamepads. I found in SFML documentation that argument JoyId in bool IsJoystickButtonDown(..) can be set only to 0 or 1. Does this mean that SFML can only handle two gamepads? If yes, is there any other way to handle for example 4 independent gamepads? I will run it on Linux.


  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Number of gamepads
« Reply #1 on: September 03, 2009, 10:25:51 pm »
Yes, SFML can only handle up to two joysticks. This is mainly because some OSes don't provide easy access to more controllers.

But I guess this can be worked around, and I can look into this in the future.
Laurent Gomila - SFML developer