0 Members and 1 Guest are viewing this topic.
You can enable/disable it when you switch between GUI and in-game controls, alternatively you could ignore the additional KeyPresses if you haven't received a KeyRelease.
you can use sf::Keyboard::isKeyPressed for game logic it's better way imo