Turning a keyboard into a mouse with Libevdev
suricrasia.online
suricrasia.online
...you just need to map keys. It was very easy, so now fn-arrow and fn-return work as a mouse on anything I've attached it to so far. I got an rpi recently, only connected this, and was able to navigate the startup ui with no mouse.
the advantage with this is that it's cross platform.
Using the keyboard to drive the mouse isn't a nice experience. -- But, it's nice to have in situations like "I use a bluetooth mouse, on desktop, and bluetooth isn't set up/working". I've found that useful for live ISOs.
https://support.microsoft.com/en-us/windows/use-mouse-keys-t...
The gist of it is that the solution to a linearly damped particle is a linear system, so the x and y components can be calculated completely independently and the analytic solution is just an exponential of time.
It is a special case of the timestep-independent damped harmonic oscillator, which I previously wrote a blogpost about [10].
Namely it is the "unsprung" special case under "Overdamped"
The very same formulation is also what I used to implement LibreScroll[11] to add inertial scrolling to any mouse.
[0] https://github.com/EsportToys/TPMouse
[1] https://www.reddit.com/r/Trackballs/comments/ym9q2t/tpmouse_...
Are you saying you that you would hold some modifier combo and then slide your finger over g,h,j,k,l to go right? How is that anymore usable? You're doing so much movement you may as well just reach for a mouse or touchpad. Also I have no idea how you'd calibrate that to move a sensible amount across short/long distances.
Or are you suggesting something else? I don't understand what you mean by "sliding".