mirror of https://github.com/nirenjan/libx52.git
Prior to this change, the virtual mouse update was restricted to updating once every `mouse_delay` microseconds, and the allowed values were a small fixed set. Some users reported that even at the highest speed, the speed was slower than they were used to (with a high DPI mouse). This change modifies the speed calculation algorithm as follows. It keeps the slowest speed to refresh the mouse every 70 ms. As the speed increases, the refresh rate drops by 5 ms for every increment in speed, until the refresh rate caps at once every 10 ms. Beyond that, a multiplicative factor begins to take effect, with each speed increase adding 0.25 to the factor. That is, speed 13 would multiply the axis components by 1.25 _and_ refresh every 10 ms. Speed 14 would bump the factor to 1.50, speed 15 to 1.75, and so on, until the factor tops out at 6.0. |
||
---|---|---|
.. | ||
Makefile.am | ||
daemon.dox | ||
x52d.conf | ||
x52d.service.in | ||
x52d_clock.c | ||
x52d_clock.h | ||
x52d_config.c | ||
x52d_config.def | ||
x52d_config.h | ||
x52d_config_dump.c | ||
x52d_config_parser.c | ||
x52d_const.h | ||
x52d_device.c | ||
x52d_device.h | ||
x52d_io.c | ||
x52d_io.h | ||
x52d_led.c | ||
x52d_main.c | ||
x52d_mouse.c | ||
x52d_mouse.h | ||
x52d_mouse_evdev.c |