l'espoir renaît????

This commit is contained in:
2025-03-23 11:50:55 +01:00
parent 8635d4b853
commit 92b58c4b98
6 changed files with 72 additions and 38 deletions

View File

@@ -14,10 +14,12 @@ MainAppMenu::MainAppMenu(std::shared_ptr<MenuStack> menuStack, std::shared_ptr<S
}
void MainAppMenu::computeFrame() {
if (sf::Keyboard::isKeyPressed(sfKey::Enter)) {
this->updateMetaBinds();
if (this->enterReleased) {
this->menuStack->push(std::make_shared<InGameAppMenu>(this->menuStack, this->settings, this->renderWindow));
}
else if (sf::Keyboard::isKeyPressed(sfKey::Escape)) {
if (this->escReleased) {
this->menuStack->pop();
}
}