Skip to content

Commit f1f1109

Browse files
authored
Adjust example for SFML 3
1 parent 3e2576d commit f1f1109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ int main() {
114114
sf::Clock deltaClock;
115115
while (window.isOpen()) {
116116
while (const auto event = window.pollEvent()) {
117-
ImGui::SFML::ProcessEvent(window, event);
117+
ImGui::SFML::ProcessEvent(window, *event);
118118

119-
if (event.type == sf::Event::Closed) {
119+
if (event->is<sf::Event::Closed>()) {
120120
window.close();
121121
}
122122
}

0 commit comments

Comments
 (0)