SFML community forums

Help => General => Topic started by: Sensei on May 12, 2014, 11:58:05 pm

Title: Joystick and pollEvent
Post by: Sensei on May 12, 2014, 11:58:05 pm
Just tried out SFML but ran into an annoyance. I have a wireless PS4 controller and even when it is not turned on, I get hiccups in framerate about every 1/4th second and they last ~50 ms. I have narrowed the issue down to the pollEvent after googling and discovering related problems. The weird part is: I'll start up this simple program, turn my controller on, and the program runs smoothly. I'm using Windows 8.1 and SFML 2.1. Card is NVIDIA 570.

Perhaps this a driver issue on my end?
while (window.isOpen())
{
    sf::Event event;
    while (window.pollEvent(event))
    {
        // empty but problem persists
    }
}