Hi, I want to detect when the joystick button was pressed. But, I have a problem that once a button is pressed, the button was detected to be pressed always. I used only once in the if statement sf::Joystick::isButtonPressed() but the debug message says button was pressed all the time.
I attached my screenshot of the program. What could cause it? and how to solve this.