The function
sf::Joystick::isButtonPressed(joy, button)
was supposed to return the joystick input even when the window is out of focus, right? I'm asking because this doesn't seem to work for me. I tried using
sf::Joystick::update()
too, and it still doesn't work. I also tried using events and the result was the same (not surprisingly since events can only be handled by an active window as far as I know). Am I doing something wrong? Is there another way to get a joystick input when the window is out of focus?
Oh by the way I tried using the keyboard as well and it was fine, I could get the out of focus input. The only issue is the joystick.
sf::Keyboard::isKeyPressed(sf::Keyboard::Key::A)