This commit is contained in:
Marco Antognini 2013-09-20 15:11:22 +02:00
parent 6f68192272
commit 1b113c2c22
2 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ int main(int, char const**)
window.close(); window.close();
} }
// Espace pressed : exit // Escape pressed : exit
if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) { if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) {
window.close(); window.close();
} }
@ -86,6 +86,6 @@ int main(int, char const**)
// Update the window // Update the window
window.display(); window.display();
} }
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -66,7 +66,7 @@ int main(int argc, char const** argv)
window.close(); window.close();
} }
// Espace pressed : exit // Escape pressed : exit
if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) { if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) {
window.close(); window.close();
} }
@ -84,6 +84,6 @@ int main(int argc, char const** argv)
// Update the window // Update the window
window.display(); window.display();
} }
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }