30 lines
838 B
C++
30 lines
838 B
C++
#include "service.h"
|
|
|
|
// 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_start, false, INPUT_USE_GAMECONTROLLER, index))
|
|
{
|
|
return SERVICE_EXIT;
|
|
}
|
|
|
|
else if (input->checkInput(input_fire_left, false, INPUT_USE_GAMECONTROLLER, index))
|
|
{
|
|
return SERVICE_CONFIG;
|
|
}
|
|
|
|
else if (input->checkInput(input_fire_center, false, INPUT_USE_GAMECONTROLLER, index))
|
|
{
|
|
return SERVICE_SHADERS;
|
|
}
|
|
|
|
else if (input->checkInput(input_fire_right, false, INPUT_USE_GAMECONTROLLER, index))
|
|
{
|
|
return SERVICE_PAUSE;
|
|
}
|
|
}
|
|
|
|
return SERVICE_NULL;
|
|
} |