follat!
This commit is contained in:
@@ -38,10 +38,12 @@ enum inputs_e
|
||||
input_reset,
|
||||
input_mute,
|
||||
input_showinfo,
|
||||
input_config,
|
||||
input_swap_controllers,
|
||||
|
||||
// Input obligatorio
|
||||
input_null,
|
||||
input_number_of_inputs
|
||||
input_number_of_inputs,
|
||||
};
|
||||
|
||||
#define INPUT_ALLOW_REPEAT true
|
||||
@@ -103,10 +105,14 @@ public:
|
||||
|
||||
// Asigna inputs a botones del mando
|
||||
void bindGameControllerButton(int index, inputs_e input, SDL_GameControllerButton button);
|
||||
void bindGameControllerButton(int index, inputs_e inputTarget, inputs_e inputSource);
|
||||
|
||||
// Comprueba si un input esta activo
|
||||
bool checkInput(inputs_e input, bool repeat = true, int device = INPUT_USE_ANY, int index = 0);
|
||||
|
||||
// Comprueba si un input con modificador esta activo
|
||||
bool checkModInput(inputs_e inputMod, inputs_e input, bool repeat = true, int device = INPUT_USE_ANY, int index = 0);
|
||||
|
||||
// Comprueba si hay almenos un input activo
|
||||
bool checkAnyInput(int device = INPUT_USE_ANY, int index = 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user