mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 20:33:22 +00:00
(XDK joypad) Cleanups
This commit is contained in:
parent
e1ec0e578c
commit
41575a63ac
@ -199,14 +199,17 @@ static void xdk_joypad_poll(void)
|
||||
* the device handle will be NULL. */
|
||||
if (XInputPoll(gamepads[port]) != ERROR_SUCCESS)
|
||||
continue;
|
||||
|
||||
if (XInputGetState(gamepads[port], &state_tmp) != ERROR_SUCCESS)
|
||||
continue;
|
||||
#elif defined(_XBOX360)
|
||||
if (XInputGetState(port, &state_tmp) == ERROR_DEVICE_NOT_CONNECTED)
|
||||
continue;
|
||||
#endif
|
||||
|
||||
if (XInputGetState(
|
||||
#ifdef _XBOX
|
||||
gamepads[port]
|
||||
#else
|
||||
port
|
||||
#endif
|
||||
, &state_tmp) == ERROR_DEVICE_NOT_CONNECTED)
|
||||
continue;
|
||||
|
||||
state_cur = &pad_state[port];
|
||||
|
||||
*state_cur = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user