mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
fix XInput performance bug
This commit is contained in:
parent
253bb88bfc
commit
dca8dd0f3b
@ -314,8 +314,9 @@ static int16_t winxinput_joypad_axis (unsigned port_num, uint32_t joyaxis)
|
||||
static void winxinput_joypad_poll(void)
|
||||
{
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
if (g_XInputGetStateEx(i, &(g_winxinput_states[i].xstate)) == ERROR_DEVICE_NOT_CONNECTED)
|
||||
g_winxinput_states[i].connected = false;
|
||||
if (g_winxinput_states[i].connected)
|
||||
if (g_XInputGetStateEx(i, &(g_winxinput_states[i].xstate)) == ERROR_DEVICE_NOT_CONNECTED)
|
||||
g_winxinput_states[i].connected = false;
|
||||
|
||||
dinput_joypad.poll();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user