Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win ballistic mouse #365

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

pentamassiv
Copy link
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.

@pentamassiv pentamassiv marked this pull request as draft November 29, 2024 01:01
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