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

Author Topic: Joystick and pollEvent  (Read 844 times)

0 Members and 1 Guest are viewing this topic.

Sensei

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Joystick and pollEvent
« 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
    }
}

 

anything