Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Enabling raw input either as a system-wide input sink (dwFlags = RIDEV_INPUTSINK 0x100) or only on foreground focus (default, dwFlags = 0x0) causes devices to flood the HWND's message queue with WM_INPUTs, and prevents the system from becoming idle

> [...]

>Changing the 0x04 to a 0x06 means that instead of trying to get raw input from joysticks, they get it from the keyboard instead

Why does changing the usage id fix the issue? The prior paragraph suggests the issue is with the api itself, not with a particular usage id.



As i understood it, using raw input keeps the system awake and that may be working as intended (hence they suggest that Microsoft better document that//reflect it in powercfg /requests). The issue is that GeForce experience was requesting raw input when it wasn't necessary.


He changed ID to instead receive events from keyboard, which presumably doesn't generate cyclic events. (but only on keypresses)


I believe his issue was that I'd was poorly documented, and that NVIDIA needed to use a more exclusive id. Presumably, it's not clear in the documentation that the input class NVIDIA chose also included the controller input too.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: