Hi guys, can someone please explain to me as simply as you can how pollEvents work, im struggling to understand them, like, i get the rest of the code, just not the pollEvent part
thanks
while (gameWindow.isOpen())
{
sf::Event event;
while (gameWindow.pollEvent(event))
{
if (event.type == sf::Event::Closed)
gameWindow.close();
}
gameWindow.display();
}