Hello,
after upgrading to Windows 10 (2004) my PC dies not go to sleep any more when I plug-in one of my gamepads / controllers. This happens with any of my 4 controllers (all of the same kind).
For the controllers (a USB cable Speedlink SL-650000-BK, XInput / Xbox 360 compatible) the following driver has been installed during the upgrade:
Xbox 360-Controller for Windows (08.12.2019 - 10.0.19041.1)
I do not know which driver has been installed before. Maybe the same? However, with 1909 everything worked perfectly.
I can even narrow down the problem. When the controller is plugged in, GetLastInputInfo (winuser.h) always returns that input has been given some ms ago. So Windows always gets input, but nobody is doing that physically, of course. Therefore, Windows does
not sleep.