(PSP) Just autodetect first pad

This commit is contained in:
twinaphex 2015-04-06 06:02:37 +02:00
parent a670f3466c
commit 39d371bcbb

View File

@ -24,13 +24,9 @@ static const char *psp_joypad_name(unsigned pad)
return "PSP Controller"; return "PSP Controller";
} }
static bool psp_joypad_init(void) static void psp_joypad_autodetect_add(unsigned autoconf_pad)
{ {
unsigned autoconf_pad;
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
for (autoconf_pad = 0; autoconf_pad < MAX_PADS; autoconf_pad++)
{
autoconfig_params_t params = {{0}}; autoconfig_params_t params = {{0}};
strlcpy(settings->input.device_names[autoconf_pad], strlcpy(settings->input.device_names[autoconf_pad],
@ -44,6 +40,10 @@ static bool psp_joypad_init(void)
input_config_autoconfigure_joypad(&params); input_config_autoconfigure_joypad(&params);
} }
static bool psp_joypad_init(void)
{
psp_joypad_autodetect_add(0);
return true; return true;
} }