Open m986883511 opened 3 years ago
Thank you for your report.
When setting the mouse position, pynput will send an absolute movement using SetCursorPos
(I assume that you are using Windows). I suspect that a game would rather react to relative movements.
The pynput.mouse.Controller.move
method allows for relative movement in theory, but is implemented as read position + offset + write position on Windows. Perhaps an overload using SendInput
would fix this issue.
I do not have time to try this right now, but I might in a couple of days. Would you be able to test the solution in that case?
I test it at osu, it has same problem. (just a report)
if you press left mouse button, y positon will move downword,but it dont work in overwatch(use 76,fps game)