#pragma once #include #include void JI_DisableKeyboard(Uint32 time); // Bloqueja tot l'input cap al joc (JI_KeyPressed retorna false per a tot) void JI_SetInputBlocked(bool blocked); // Estableix l'estat d'una tecla virtual. MĂșltiples fonts (gamepad, remap) // s'agrupen per OR. JI_KeyPressed retorna true si el teclat real O qualsevol // font virtual estĂ  premuda. enum JI_VirtualSource : std::uint8_t { JI_VSRC_GAMEPAD = 0, JI_VSRC_REMAP = 1, JI_VSRC_COUNT = 2 }; void JI_SetVirtualKey(int scancode, int source, bool pressed); void JI_Update(); auto JI_KeyPressed(int key) -> bool; auto JI_CheatActivated(const char* cheat_code) -> bool; auto JI_AnyKey() -> bool;