diff --git a/source/engine.cpp b/source/engine.cpp index 5a93f79..b8ddf36 100644 --- a/source/engine.cpp +++ b/source/engine.cpp @@ -720,6 +720,13 @@ void Engine::toggleFullscreen() { fullscreen_enabled_ = !fullscreen_enabled_; SDL_SetWindowFullscreen(window_, fullscreen_enabled_); + + // Ocultar/mostrar cursor según modo fullscreen + if (fullscreen_enabled_) { + SDL_HideCursor(); + } else { + SDL_ShowCursor(); + } } void Engine::toggleRealFullscreen() { @@ -754,6 +761,9 @@ void Engine::toggleRealFullscreen() { } SDL_free(displays); } + + // Ocultar cursor en real fullscreen + SDL_HideCursor(); } else { // Volver a resolución original current_screen_width_ = SCREEN_WIDTH; @@ -768,6 +778,9 @@ void Engine::toggleRealFullscreen() { // Reinicar la escena con resolución original initBalls(scenario_); + + // Mostrar cursor al salir de real fullscreen + SDL_ShowCursor(); } }