Ctrl+S pour sauvegarder dans l'éditeur

This commit is contained in:
Mattéo Delabre 2016-04-11 03:50:42 +02:00
parent f8c87e1f76
commit b6099e8d75
1 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,11 @@ void Editor::processEvent(const sf::Event& event) {
clearSelection();
}
// appui sur Ctrl + S : sauvegarde du niveau
if (event.key.code == sf::Keyboard::S && event.key.control) {
save();
}
// appui sur Ctrl + A : sélection de tous les objets
if (event.key.code == sf::Keyboard::A && event.key.control) {
selectAll();