You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 2, 2025. It is now read-only.
I believe SDL expects no updates to return values of SDL_JoystickNameForIndex or SDL_NumJoysticks inbetween SDL event pumping and / or SDL_JoystickUpdate. Otherwise there might be race conditions.
Imagine these steps in an app:
A user asks SDL for the number of connected joystick devices
User disconnects the USB device
User takes device count from step 1. to loop over SDL joystick devices to ask for their name
I don't think our driver respects this.
We should check if / how other backends take care of this.
See #30 for another description of this / why I think this is violated.