Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hopson97/HopsonCraft
/ checkForClose
Function
checkForClose
Source/Display.cpp:62–72 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
60
}
61
62
void checkForClose()
63
{
64
sf::Event e;
65
while (window->pollEvent(e))
66
{
67
if (e.type == sf::Event::Closed || sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
68
{
69
close();
70
}
71
}
72
}
73
74
bool isOpen()
75
{
Callers
nothing calls this directly
Calls
1
close
Function · 0.85
Tested by
no test coverage detected