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

More options for mouse speed movement #170

Open
AdrianSimionov opened this issue Sep 19, 2023 · 3 comments
Open

More options for mouse speed movement #170

AdrianSimionov opened this issue Sep 19, 2023 · 3 comments

Comments

@AdrianSimionov
Copy link

While a generic option makes the movement more human-like, the speed is different when moving mouse over a long distance compared to moving the mouse for a short distance.

A feature where the speed is kept constant and can be set to a constant value, would be greatly appreciated.

@AdrianSimionov
Copy link
Author

Currently, when not using option "-e" the mouse moves at a fixed hard-coded speed, let's say X.

Add an option called "-s", which when passed, is changing the hard-coded value of X to a new value as provided by the "-s" option.

@BlueM
Copy link
Owner

BlueM commented Nov 10, 2024

To be precise, when not using -e, the mouse does not move at a fixed hard-coded speed, as it basically doesn’t move, but it “jumps”. For instance, it’s on … let’s say … 1983:54, and in the next microsecond, it’s at 19:1037, without any positions in between.

So basically you want easing, but not with the current cubic bezier algorithm, but with a fixed value. Sounds feasible. But: when speaking of “speed”, do you really mean speed, or rather time? I’m asking because speed would mean something like “50 pixels in 10 milliseconds” or so – which would still result in different time needed to move a longer distance compared to a short distance. While time would mean “I want the movement to take 120 milliseconds, regardless of the distance“. IMHO, your description could be understood in both ways.

@AdrianSimionov
Copy link
Author

#171 is expected to introduce constant speed, as defined by the physics formula for speed.

While what is described above as "time" could be a different feature request, my original request was for constant speed of mouse movement. Longer the distance, longer the time to travel.

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

No branches or pull requests

3 participants
@BlueM @AdrianSimionov and others