Sleeping wireless controller messes up controller indexes

Pretty new to this software, sorry of there is an obvious solution.

So I have a wireless xbox controller i use to navigate the menus. I also have plugged in 2 snes controllers when the snes emulator starts. In the middle of the game the wireless xbox controller sleeps which I am guessing shifts the controller indexes over, messing up all inputs.

Is there a way to tie controller configurations/setup/mapping a hardware id instead of a controller index?

No, on windows the pads are enumerated like that and there isn’t any way to have persistent ids. Only way would be to use the “Labels” I guess but that would require a rewrite of the dinput driver