(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";
}
static bool psp_joypad_init(void)
static void psp_joypad_autodetect_add(unsigned autoconf_pad)
{
unsigned autoconf_pad;
settings_t *settings = config_get_ptr();
for (autoconf_pad = 0; autoconf_pad < MAX_PADS; autoconf_pad++)
{
autoconfig_params_t params = {{0}};
strlcpy(settings->input.device_names[autoconf_pad],
@ -42,7 +38,11 @@ static bool psp_joypad_init(void)
strlcpy(params.name, psp_joypad_name(autoconf_pad), sizeof(params.name));
strlcpy(params.driver, psp_joypad.ident, sizeof(params.driver));
input_config_autoconfigure_joypad(&params);
}
}
static bool psp_joypad_init(void)
{
psp_joypad_autodetect_add(0);
return true;
}