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

feat: add movemouse-smooth-diagonals #568

Closed
wants to merge 2 commits into from

Conversation

rszyma
Copy link
Contributor

@rszyma rszyma commented Sep 25, 2023

Describe your changes. Use imperative present tense.

Closes #549

Add movemouse-smooth-diagonals cfg option that enables smooth diagonal movements by storing a previous movemouse action in a 1-length buffer. If the next movemouse has different axis than the one in the buffer both actions are outputted at the same time.

A few remarks:

  • So far I've only did implementation for Linux (I haven't tried implementing win nor wintercept yet).
  • This cfg option is intended to work only with movemouse actions that have the same interval, otherwise the behavior is undefined.
  • Using this cfg option adds a delay to movemouse actions equal to the interval of used movemouse actions.

Checklist

  • Add documentation to docs/config.adoc
    • Yes
  • Add example and basic docs to cfg_samples/kanata.kbd
    • Yes
  • Update error messages
    • N/A
  • Added tests, or did manual testing
    • Manual testing

@rszyma rszyma marked this pull request as draft October 2, 2023 10:39
@jtroo
Copy link
Owner

jtroo commented Oct 2, 2023

Tried fixing merge conflicts through the GitHub UI without doing tests, something might be broken now hah.

Will try this out with Windows changes

@jtroo jtroo mentioned this pull request Oct 3, 2023
4 tasks
@rszyma
Copy link
Contributor Author

rszyma commented Oct 3, 2023

Continued in #573

@rszyma rszyma closed this Oct 3, 2023
@rszyma rszyma deleted the cfg-movemouse-smooth-diagonals branch October 8, 2023 07:34
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.

Bug: movemouse is not smooth when moving diagonally
2 participants