- punter del mouse amagat soles

- canvas de wasm mes gran
This commit is contained in:
2026-04-12 22:23:31 +02:00
parent 978cbcc9fc
commit 58cacf7bda
4 changed files with 77 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
#include "jail_audio.hpp" // for JA_Init
#include "lang.h" // for Lang, MAX_LANGUAGES, ba_BA, en_UK
#include "logo.h" // for Logo
#include "mouse.hpp" // for Mouse::handleEvent, Mouse::upda...
#include "screen.h" // for FILTER_NEAREST, Screen, FILTER_...
#include "texture.h" // for Texture
#include "title.h" // for Title
@@ -649,6 +650,9 @@ SDL_AppResult Director::iterate() {
}
#endif
// Actualiza la visibilidad del cursor del ratón
Mouse::updateCursorVisibility(options->videoMode != 0);
// Gestiona las transiciones entre secciones
handleSectionTransition();
@@ -683,6 +687,9 @@ SDL_AppResult Director::handleEvent(SDL_Event *event) {
}
#endif
// Gestiona la visibilidad del cursor según el movimiento del ratón
Mouse::handleEvent(*event, options->videoMode != 0);
// Reenvía el evento a la sección activa
switch (activeSection) {
case ActiveSection::Logo: