[SDL2] - Problem With Multiple Joysticks


We have three USB joysticks plugged in and we do: “SDL_JoystickOpen()” for all three.
If we then do: “SDL_JoystickClose()” on the first USB joystick, then what happens to the other two?
Let us know, thanks!


The other two stay open. I recommend you only use SDL_JoystickOpen when you receive a SDL_JOYDEVICEADDED event and use the index given in event.jdevice.which.