mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +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. */
|
* the device handle will be NULL. */
|
||||||
if (XInputPoll(gamepads[port]) != ERROR_SUCCESS)
|
if (XInputPoll(gamepads[port]) != ERROR_SUCCESS)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (XInputGetState(gamepads[port], &state_tmp) != ERROR_SUCCESS)
|
|
||||||
continue;
|
|
||||||
#elif defined(_XBOX360)
|
|
||||||
if (XInputGetState(port, &state_tmp) == ERROR_DEVICE_NOT_CONNECTED)
|
|
||||||
continue;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (XInputGetState(
|
||||||
|
#ifdef _XBOX
|
||||||
|
gamepads[port]
|
||||||
|
#else
|
||||||
|
port
|
||||||
|
#endif
|
||||||
|
, &state_tmp) == ERROR_DEVICE_NOT_CONNECTED)
|
||||||
|
continue;
|
||||||
|
|
||||||
state_cur = &pad_state[port];
|
state_cur = &pad_state[port];
|
||||||
|
|
||||||
*state_cur = 0;
|
*state_cur = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user