mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
(PSP) Just autodetect first pad
This commit is contained in:
parent
a670f3466c
commit
39d371bcbb
@ -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(¶ms);
|
||||
}
|
||||
}
|
||||
|
||||
static bool psp_joypad_init(void)
|
||||
{
|
||||
psp_joypad_autodetect_add(0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user