Guardada en el fichero de configuración la asignación de cada mando a cada jugador

This commit is contained in:
2024-09-15 13:29:05 +02:00
parent 8fc217f0e3
commit c40c59275a
3 changed files with 27 additions and 9 deletions

View File

@@ -3,39 +3,39 @@
// Comprueba el botón de servicio del controlador "index"
int checkServiceButton(Input *input, int index)
{
if (input->checkInput(input_service, true, INPUT_USE_GAMECONTROLLER, index))
if (input->checkInput(input_service, INPUT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
if (input->checkInput(input_start, false, INPUT_USE_GAMECONTROLLER, index))
if (input->checkInput(input_start, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_EXIT;
}
else if (input->checkInput(input_fire_left, false, INPUT_USE_GAMECONTROLLER, index))
else if (input->checkInput(input_fire_left, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_CONFIG;
}
else if (input->checkInput(input_fire_center, false, INPUT_USE_GAMECONTROLLER, index))
else if (input->checkInput(input_fire_center, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_SHADERS;
}
else if (input->checkInput(input_fire_right, false, INPUT_USE_GAMECONTROLLER, index))
else if (input->checkInput(input_fire_right, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_PAUSE;
}
else if (input->checkInput(input_up, false, INPUT_USE_GAMECONTROLLER, index))
else if (input->checkInput(input_up, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_SWAP_CONTROLLERS;
}
else if (input->checkInput(input_down, false, INPUT_USE_GAMECONTROLLER, index))
else if (input->checkInput(input_down, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_RESET;
}
else if (input->checkInput(input_left, false, INPUT_USE_GAMECONTROLLER, index))
else if (input->checkInput(input_left, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, index))
{
return SERVICE_MUTE;
}