Añadido botón de servicio al titulo
This commit is contained in:
@@ -1,25 +1,26 @@
|
||||
#include "service.h"
|
||||
|
||||
int checkServiceButton(Input *input)
|
||||
// Comprueba el botón de servicio del controlador "index"
|
||||
int checkServiceButton(Input *input, int index)
|
||||
{
|
||||
if (input->checkInput(input_service))
|
||||
if (input->checkInput(input_service, true, INPUT_USE_GAMECONTROLLER, index))
|
||||
{
|
||||
if (input->checkInput(input_start))
|
||||
if (input->checkInput(input_start, false, INPUT_USE_GAMECONTROLLER, index))
|
||||
{
|
||||
return SERVICE_EXIT;
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_fire_left))
|
||||
else if (input->checkInput(input_fire_left, false, INPUT_USE_GAMECONTROLLER, index))
|
||||
{
|
||||
return SERVICE_CONFIG;
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_fire_center))
|
||||
else if (input->checkInput(input_fire_center, false, INPUT_USE_GAMECONTROLLER, index))
|
||||
{
|
||||
return SERVICE_SHADERS;
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_fire_right))
|
||||
else if (input->checkInput(input_fire_right, false, INPUT_USE_GAMECONTROLLER, index))
|
||||
{
|
||||
return SERVICE_PAUSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user