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

@@ -24,6 +24,7 @@
#include "texture.h" // Para Texture
#include "tiled_bg.h" // Para TiledBG, TiledBGMode
#include "utils.h" // Para Color, Zone, fade_color, no_color, BLOCK
#include "mouse.h"
// Constructor
Title::Title()
@@ -134,7 +135,7 @@ void Title::update()
// Actualiza el mosaico de fondo
tiled_bg_->update();
if (counter_ == 100)
{
fade_->activate();
@@ -270,6 +271,9 @@ void Title::checkEvents()
break;
}
}
// Comprueba el cursor
Mouse::handleEvent(event);
}
}
}