On Thu Aug 14 14:53:57 2025 +0000, Santino Mazza wrote:
I did more testing on Windows, WH_MOUSE_LL messages are not DPI scaled. So I suppose, instead of `get_thread_dpi`, I should just put 0 so it doesn't do any DPI scaling? Also, because WH_MOUSE_LL is not DPI scaled, I think there are still going to be issues on the way mouse movement is currently calculated by DirectInput. How would we write a test for this? On Windows I can just increase the scaling of the display in the settings, but I'm not sure how to do it programmatically.
Yeah I don't think we have tests that change DPI dynamically. Maybe it's just a matter of setting the LogPixels registry setting, but it's probably a whole can of worms.
This seems to match what MSDN says at least. The dinput worker thread will need to be made per-monitor aware too for it to work correctly.