When running the following code in a loop if I simply press and release a key a single one time I find "Key released." printed well over 50 times:
void Game::GameLoop()
{
sf::Event currentEvent;
_mainWindow.pollEvent(currentEvent);
if (currentEvent.type == sf::Event::KeyReleased)
std::cout << "Key released." << std::endl;
}
while (!Exit())
{
GameLoop();
}
This is using SFML 2.3 with Microsoft Visual Studio Express 2013 with a release build.