Afegit mouse.cpp per amagar el cursor quan no està moventse

This commit is contained in:
2025-01-03 23:35:48 +01:00
parent 08dfaf7641
commit b586a117c8
10 changed files with 109 additions and 19 deletions

View File

@@ -16,6 +16,7 @@
#include "texture.h" // Para Texture
#include "utils.h" // Para Zone, BLOCK, Color, bg_color
#include "writer.h" // Para Writer
#include "mouse.h"
// Constructor
Intro::Intro()
@@ -169,13 +170,18 @@ void Intro::checkEvents()
case SDL_WINDOWEVENT:
{
if (event.window.event == SDL_WINDOWEVENT_SIZE_CHANGED)
{
reloadTextures();
}
break;
}
default:
break;
}
// Comprueba el cursor
Mouse::handleEvent(event);
}
}
@@ -384,7 +390,7 @@ void Intro::update()
updateScenes();
// Actualiza las variables de globalInputs
globalInputs::update();
globalInputs::update();
}
}