Hello, I've got a problem concerning the sf::Joystick component. It's a simple one: the index of the joysticks do not correspond corretly to the gamepads. I tried printing out a console message when a controller presses a button:
for (unsigned int i = 0; i < 4; i++)
{
if (Joystick::isButtonPressed(i, 0))
cout << "Gamepad " << i+1 << " connected" << endl << endl;
}
Here already, the indexes are incorrect so it seems as though sfml is incorrectly maping the indexes of the gamepads. In that case, what can I do to fix this? I'm truly clueless at the moment and I haven't found any threads that seem to discuss or atleast give any answers to this problem.
Has anyone else experienced this issue and if so, how do you solve it?
Thanks.