I have never done myself but isn’t it just like touch
when the user presses start or another button to enter the game cant you record the ID of that joypad and asign it to the player sprites UI icons etc
then if that joypad is disconnected
you can just test for the index of that joypad
when joypad disconnected
is joypad index xxx
then do whatever