Ya se guardan las asignaciones de los botones en el fichero de configuración
This commit is contained in:
@@ -89,9 +89,6 @@ private:
|
||||
i_disable_e disabledUntil; // Tiempo que esta deshabilitado
|
||||
bool enabled; // Indica si está habilitado
|
||||
|
||||
// Convierte un inputs_e a std::string
|
||||
std::string to_String(inputs_e input);
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Input(std::string file);
|
||||
@@ -140,6 +137,18 @@ public:
|
||||
|
||||
// Muestra por consola los controles asignados
|
||||
void printBindings(int device = INPUT_USE_KEYBOARD, int index = 0);
|
||||
|
||||
// Obtiene el SDL_GameControllerButton asignado a un input
|
||||
SDL_GameControllerButton getControllerBinding(int index, inputs_e input);
|
||||
|
||||
// Convierte un inputs_e a std::string
|
||||
std::string to_string(inputs_e input);
|
||||
|
||||
// Convierte un std::string a inputs_e
|
||||
inputs_e to_inputs_e(std::string name);
|
||||
|
||||
// Obtiene el indice a partir del nombre del mando
|
||||
int getIndexByName(std::string name);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user