20 lines
520 B
C++
20 lines
520 B
C++
#pragma once
|
|
#include <SDL3/SDL.h>
|
|
|
|
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);
|
|
|
|
bool JI_CheatActivated(const char* cheat_code);
|
|
|
|
bool JI_AnyKey();
|