Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Well... it should pass that test, so yeah use a joystick and see if everything works. Other than that, as already mentioned in #660, this should fix a memory leak as well, so valgrind will help with that. And finally, it will fix the accelerometer issue in #660. Obviously if you don't have an accelerometer you won't be able to test that part of the patch, but I'm pretty sure there are other volunteers
I'm creating a joystick example program for SFML (to be hopefully included in the future; there's not a single example using a joystick) to test this. However, sf::Joystick::isConnected() already returns false for every index. I have 2 joysticks (Logitech Rumblepad 2 and Saitek X52 Pro) connected.
With current master's HEAD checked out, it works though. I haven't taken a look in the sources at all yet (no time), but maybe you already have an idea why that might happen.