mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
[ORBIS] More input driver changes
This commit is contained in:
parent
1b35b75d45
commit
ea2ed2fb07
@ -107,20 +107,20 @@ static bool ps4_joypad_init(void *data)
|
||||
ds_joypad_states[num_players].handle = scePadOpen(userId, 0, 0, NULL);
|
||||
RARCH_LOG("USER %x HANDLE %x\n", userId, ds_joypad_states[num_players].handle);
|
||||
if (ds_joypad_states[num_players].handle > 0){
|
||||
num_players++;
|
||||
ds_joypad_states[num_players].connected = true;
|
||||
ds_joypad_states[num_players].userId = userId;
|
||||
RARCH_LOG("NEW PAD: num_players %x \n", num_players);
|
||||
|
||||
bool auto_configure = input_autoconfigure_connect( ps4_joypad_name(i),
|
||||
bool auto_configure = input_autoconfigure_connect( ps4_joypad_name(num_players),
|
||||
NULL,
|
||||
ps4_joypad.ident,
|
||||
i,
|
||||
num_players,
|
||||
0,
|
||||
0);
|
||||
if (!auto_configure) {
|
||||
input_config_set_device_name(i, ps4_joypad_name(i));
|
||||
input_config_set_device_name(num_players, ps4_joypad_name(num_players));
|
||||
}
|
||||
num_players++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -660,6 +660,9 @@ const char* const input_builtin_autoconfs[] =
|
||||
DECL_AUTOCONF_DEVICE("QNX Controller", "qnx", QNX_DEFAULT_BINDS),
|
||||
DECL_AUTOCONF_DEVICE("DS4 Controller", "qnx", QNX_DUALSHOCK_BINDS),
|
||||
#endif
|
||||
#if defined(ORBIS)
|
||||
DECL_AUTOCONF_DEVICE("PS4 Controller", "ps4", PS3INPUT_DEFAULT_BINDS),
|
||||
#endif
|
||||
#if defined(VITA) || defined(SN_TARGET_PSP2)
|
||||
DECL_AUTOCONF_DEVICE("Vita Controller", "vita", PSPINPUT_DEFAULT_BINDS),
|
||||
DECL_AUTOCONF_DEVICE("DS3 Controller", "vita", PSPINPUT_DEFAULT_BINDS),
|
||||
|
Loading…
x
Reference in New Issue
Block a user