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

@@ -20,6 +20,7 @@
#include "texture.h" // Para Texture
#include "tiled_bg.h" // Para TiledBG, TiledBGMode
#include "utils.h" // Para Color, shdw_txt_color, Zone, no_color
#include "mouse.h"
// Constructor
Instructions::Instructions()
@@ -217,7 +218,7 @@ void Instructions::update()
Screen::get()->update();
// Actualiza las variables de globalInputs
globalInputs::update();
globalInputs::update();
// Incrementa el contador
counter_++;
@@ -301,6 +302,9 @@ void Instructions::checkEvents()
reloadTextures();
}
}
// Comprueba el cursor
Mouse::handleEvent(event);
}
}
@@ -310,7 +314,7 @@ void Instructions::checkInput()
// Comprueba si se ha pulsado cualquier botón (de los usados para jugar)
if (Input::get()->checkAnyButtonPressed())
{
//JA_StopMusic();
// JA_StopMusic();
section::name = section::Name::TITLE;
section::options = section::Options::TITLE_1;
section::attract_mode = section::AttractMode::TITLE_TO_DEMO;