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

Feature request: add action to set movemouse-accel-xx acceleration to max value #1377

Open
amospalla opened this issue Nov 24, 2024 · 2 comments
Labels
enhancement New feature or request PRs welcome jtroo has no plans to work on this at present, but PRs are welcome

Comments

@amospalla
Copy link

amospalla commented Nov 24, 2024

Is your feature request related to a problem? Please describe.

Using the pointer with kanata mouse features works pretty well once you get your ideal interval/acceleration-time/min/max values. You start with slow movements but also allow to accelerate to move large distances.

When I already know I need to move some large distance from the beginnig, I need the pointer to already start moving fast, I do a short-in-time but fast-in-distance movement (using movemouse-speed), and after that I release the pointer and start again with the minimum acceleration. This pattern works pretty well once you get used to it.

I tried using movemouse-speed with different values, but the mix of movemouse-accel-xx and movemouse-speed feels unpredictable and not useful for short-medium distances.

Describe the solution you'd like.

It would more be predictable and comfortable if instead of having a modifier key to multiply the speed which in turn is accelerating, the modifier key would just set the distance to its max value instantly. This speed is well known and predictable.

Describe alternatives you've considered.

As an alternative the action could be used set the timeout between min and max values shorter, which would make it faster to arrive to the max value. A variant of movemouse-speed like for example movemouse-timeout which instead of being a ratio to the pointer speed, would be a ratio to the mouse acceleration-time.

Additional context

No response

@amospalla amospalla added the enhancement New feature or request label Nov 24, 2024
@jtroo
Copy link
Owner

jtroo commented Nov 25, 2024

Some useful code references:

Check for max distance:

if mmas.accel_ticks_until_max != 0 {

Custom action handling:

CustomAction::MoveMouse {

Sample PRs for adding new action parsing:

https://github.com/jtroo/kanata/pull/1355/files
https://github.com/jtroo/kanata/pull/1336/files

@jtroo jtroo added the PRs welcome jtroo has no plans to work on this at present, but PRs are welcome label Nov 25, 2024
@amospalla
Copy link
Author

Thank you for the references. I do not know rust still I'll try to do this on a free weekend :)

As always, thank you very much for this amazing software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PRs welcome jtroo has no plans to work on this at present, but PRs are welcome
Projects
None yet
Development

No branches or pull requests

2 participants