The window.pollEvent() function in my game loop appears to not be handling any events, and the created window won't respond to anything. Here is the code for my game loop:
void Application::run()
{
sf::Context context;
window.setFramerateLimit(60);
while (window.isOpen())
{
sf::Event e;
std::cout << "loop" << std::endl;
while (window.pollEvent(e))
{
std::cout << "event" << std::endl;
handleEvent(e);
}
update();
render();
}
}
The print statement never prints "event", but "loop" prints repeatedly, so I know the loop is running. The result is that the window won't respond if I try to resize it or close it, and eventually windows marks it as "not responding". I am using the snapshot from 13-May-2019 19:49 from the download page.