mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(MFi) Get rid of warning
This commit is contained in:
parent
33ba9777a0
commit
03096cbda7
@ -166,9 +166,8 @@ static void apple_gamecontroller_joypad_poll(void)
|
||||
for (GCController *controller in [GCController controllers])
|
||||
{
|
||||
/* If we have not assigned a slot to this controller yet, ignore it. */
|
||||
int32_t slot = controller ? controller.playerIndex : -1;
|
||||
if (slot != -1 && (slot < MAX_USERS))
|
||||
apple_gamecontroller_joypad_poll_internal(controller, slot);
|
||||
if (controller && (controller.playerIndex < MAX_USERS))
|
||||
apple_gamecontroller_joypad_poll_internal(controller, controller.playerIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user