redefinir tecles
This commit is contained in:
@@ -6,9 +6,15 @@ 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);
|
||||
// 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 {
|
||||
JI_VSRC_GAMEPAD = 0,
|
||||
JI_VSRC_REMAP = 1,
|
||||
JI_VSRC_COUNT
|
||||
};
|
||||
void JI_SetVirtualKey(int scancode, int source, bool pressed);
|
||||
|
||||
void JI_Update();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user