Skip to content

Win ballistic mouse#365

Draft
pentamassiv wants to merge 34 commits intoenigo-rs:mainfrom
pentamassiv:win_ballistic_mouse
Draft

Win ballistic mouse#365
pentamassiv wants to merge 34 commits intoenigo-rs:mainfrom
pentamassiv:win_ballistic_mouse

Conversation

@pentamassiv
Copy link
Copy Markdown
Collaborator

On Windows a relative mouse move is subject to the SmoothMouseCurve. That means the actual distance in pixels the pointer will be moved depends on the speed the mouse is moved. There is documentation online explaining it for XP. It seems like it wasn't changed on new versions. I reimplemented the algorithm and it works in general, but I can't get the integration test to work. For some reason the mouse is moved by 21 pixels when a relative move by 20 pixels is requested. It should be 31 though. I also can't get it to match exactly. A difference of 1 pixels can happen because of the remainder and numerical errors.

I am pausing work on this. It took too long already :'/

Would be great if somebody would find the error or find a simpler solution to test a relative mouse move on Windows. This PR introduces a lot of code and complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant