mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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";
|
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(¶ms);
|
input_config_autoconfigure_joypad(¶ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool psp_joypad_init(void)
|
||||||
|
{
|
||||||
|
psp_joypad_autodetect_add(0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user