systemofapwne / leetmouse

A fork of the Linux mouse driver with acceleration
GNU General Public License v2.0
93 stars 10 forks source link

anglesnapping #10

Open bwivy opened 2 years ago

bwivy commented 2 years ago

I would really like to see anglesnapping as a feature, I used it a lot on my VM but would like to use it on linux aswell

systemofapwne commented 2 years ago

Sorry for the late reply.

For this, sinusoidal functions are required, which I have not yet implemented in the current codebase. The reason is, that kernel-code is very limited and has no access to the c standard library and hence, math related functions. But here comes the rescue: Due to ongoing troubles with floating-point arithmetic in this kernel module (see #14), there is a plan to move to fixed-point arithmetic and the suggested library for this purpose has sinusoidal functions implemented. Once this migration is done, one can think about adding angle-snapping.