soport per a gamepad

This commit is contained in:
2026-04-05 00:22:21 +02:00
parent 6d42f848a5
commit a328681365
6 changed files with 209 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ 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 (p.ex. des del gamepad).
// JI_KeyPressed retorna true si el teclat real O la virtual estan premudes.
void JI_SetVirtualKey(int scancode, bool pressed);
void JI_Update();
bool JI_KeyPressed(int key);