- Menú bàsic funcionant

This commit is contained in:
2024-07-06 14:25:03 +02:00
parent 2b60054466
commit f9733da46f
7 changed files with 71 additions and 9 deletions

View File

@@ -54,7 +54,9 @@ namespace modules
bool loop()
{
if (input::keyDown(SDL_SCANCODE_ESCAPE)) {
if (input::keyPressed(SDL_SCANCODE_ESCAPE) ||
input::keyPressed(SDL_SCANCODE_SPACE) ||
input::keyPressed(SDL_SCANCODE_RETURN) ) {
return false;
}