How can I understand which of the gamepads has been disconnected?
If a player disconnects from the game, then I must remove all the sprites associated with the index of this player (gamepad). But how to find out which of the four(gamepads count) indexes was disabled?
It seems to me that the inability to get a gamepad index creates problems :(