Search Results
6/21/2025, 6:31:28 AM
>>528236071
I haven't looked at my code for this in years and I don't know if you're even using the Windows API, but this comment seemed important. Otherwise I just get the position with GetCursorPos and then reset to center with SetCursorPos.
Linux has a couple extra steps but doesn't have as many stupid gotchas as Windows does. I also haven't added hardware mouse support though I intend to.
I haven't looked at my code for this in years and I don't know if you're even using the Windows API, but this comment seemed important. Otherwise I just get the position with GetCursorPos and then reset to center with SetCursorPos.
Linux has a couple extra steps but doesn't have as many stupid gotchas as Windows does. I also haven't added hardware mouse support though I intend to.
Page 1