Hey! I would really like to add some sort of smoothing to my trackball (zmk-pmw3610-driver by @fiery silo). There should be a configurable treshold, so that when the mouse movement is nearly horizontal/vertical, then the keyboard outputs purely horizontal/vertical movement. (This would be especially useful when scrolling through a document that can scroll a lot vertically and a bit horizontally, and without this feature, it keeps jiggling left/right when trying to scroll down.) If I understand the pointing device architecture correctly, this should probably be a kind of listener, and not be wired into a specific driver. Does something like this already exist? If not, can you recommend anything similar that I could use as a pointer (pun intended) for implementing it?
#[Solved] Pointing device snapping/smoothing
1 messages · Page 1 of 1 (latest)
I have seen this one: https://github.com/kot149/zmk-scroll-snap
Can apply to move if you convert move to scroll, snap, then convert back to move
Thank you so much! I will look into it.
Actually that would prevent you from using move and scroll separately I guess, so this is mostly useful for quantizing scroll direction
In any case, that should be the main use case
what do you mean by that? Scrolling and mouse movement can not have two different input processor lists? I thought you could have any amount of these processor lists and bind them to different layers.
I have not been able to test it just yet, but yeah, if it works comfortably with scrolling, I am satisfied with that (for the time being)
They are typically processed with the same input processor chain, but they have distinct event types (xy vs. scroll)
For mouse emulation keys they are separate because they have separate listeners
Thanks again, just updated my config. It's exactly what I needed.