[ORBIS] More input driver changes

This commit is contained in:
Francisco José García García 2018-12-31 00:14:56 +01:00
parent 1b35b75d45
commit ea2ed2fb07
2 changed files with 7 additions and 4 deletions

View File

@ -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++;
}
}
}

View File

@ -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),