Files

18 lines
767 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <SDL3/SDL.h>
// Helper per als placeholders del flux LOGO → TITLE → INTRO → GAME. Les escenes
// placeholder avancen amb qualsevol tecla excepte les registrades a KeyConfig
// (F1–F12, Escape), que mantenen el seu comportament habitual via GlobalInputs.
namespace Placeholder {
// Retorna true si el scancode coincideix amb alguna tecla declarada al
// KeyConfig::get() (les carregades de data/config/input.yaml). Si KeyConfig
// no s'ha carregat, totes les consultes retornaran SDL_SCANCODE_UNKNOWN i
// aquesta funció tornarà false, de manera que el test/smoke no depèn de
// l'estat global de la configuració.
[[nodiscard]] auto isReservedScancode(SDL_Scancode sc) -> bool;
} // namespace Placeholder