I'm trying to configure my controller to my program using the Joystick class for SFML 2.5.1 but no matter what number i use it still says it's not connected. the code i used to test the connection is
#include <SFML/Window/Joystick.hpp>
using namespace std;
int main()
{
bool connected = sf::Joystick::isConnected(0);
cout << connected << endl;
}