mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
fix:xinput disconnect lost gamepad (#15819)
Co-authored-by: ChenX <maple6@vip.qq.com>
This commit is contained in:
parent
57e9a3e876
commit
7df3ca3064
@ -242,6 +242,11 @@ static BOOL CALLBACK enum_joypad_cb_hybrid(
|
||||
if (g_joypad_cnt == MAX_USERS)
|
||||
return DIENUM_STOP;
|
||||
|
||||
while (!g_xinput_states[g_last_xinput_pad_idx].connected && g_last_xinput_pad_idx < 3)
|
||||
{
|
||||
g_last_xinput_pad_idx++;
|
||||
}
|
||||
|
||||
pad = &g_pads[g_joypad_cnt].joypad;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user