Mac: Fixed off-by-one bug when plugging in a joystick (thanks, Konstantin!).
--HG-- extra : rebase_source : 3bd5a711f40686140b1179717bed4587ce92576a
This commit is contained in:
parent
35c5c3eba1
commit
f14eac8b9d
1 changed files with 1 additions and 0 deletions
|
@ -465,6 +465,7 @@ JoystickDeviceWasAddedCallback(void *ctx, IOReturn res, void *sender, IOHIDDevic
|
||||||
curdevice = curdevice->pNext;
|
curdevice = curdevice->pNext;
|
||||||
}
|
}
|
||||||
curdevice->pNext = device;
|
curdevice->pNext = device;
|
||||||
|
++device_index; /* bump by one since we counted by pNext. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* !!! FIXME: why isn't there an SDL_PrivateJoyDeviceAdded()? */
|
/* !!! FIXME: why isn't there an SDL_PrivateJoyDeviceAdded()? */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue