On Thu Nov 28 20:02:23 2024 +0000, Paul Gofman wrote:
On Testbot Win8 and Win10 machines that works like you describe. I am guessing that this was maybe changed in Win11 (as the behaviour with jumping joystick ID without any sort of unplugging of specific device involved, with it keeping the same instance id, looks like a bug), or it doesn't work very well on first device attach / remove on Windows but then it persists something and avoids jumping IDs even on earlier versions.
The ID get cached quickly, they are also cached by VID:PID, not by device path. So you need to change the VID/PID of the virtual device in the tests to trigger the behavior I described again (just incrementing the VID for instance seems enough). I suspect it's probably cached somewhere in the registry, although I have not looked for it.