Help Overlay: implementación preliminar

This commit is contained in:
2025-10-12 07:02:22 +02:00
parent 35f29340db
commit 18a8812ad7
7 changed files with 362 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ bool InputHandler::processEvents(Engine& engine) {
break;
case SDLK_H:
engine.toggleDebug();
engine.toggleHelp(); // Toggle ayuda de teclas
break;
// Toggle Física ↔ Última Figura (antes era C)
@@ -99,20 +99,20 @@ bool InputHandler::processEvents(Engine& engine) {
break;
// Toggle Modo Boids (comportamiento de enjambre)
case SDLK_J:
case SDLK_B:
engine.toggleBoidsMode();
break;
// Ciclar temas de color (movido de T a B)
case SDLK_B:
// Ciclar temas de color (movido de B a C)
case SDLK_C:
{
// Detectar si Shift está presionado
SDL_Keymod modstate = SDL_GetModState();
if (modstate & SDL_KMOD_SHIFT) {
// Shift+B: Ciclar hacia atrás (tema anterior)
// Shift+C: Ciclar hacia atrás (tema anterior)
engine.cycleTheme(false);
} else {
// B solo: Ciclar hacia adelante (tema siguiente)
// C solo: Ciclar hacia adelante (tema siguiente)
engine.cycleTheme(true);
}
}
@@ -263,6 +263,11 @@ bool InputHandler::processEvents(Engine& engine) {
case SDLK_K:
engine.toggleLogoMode();
break;
// Toggle Debug Display (movido de H a F12)
case SDLK_F12:
engine.toggleDebug();
break;
}
}
}