tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.96k stars 1.7k forks source link

ADB: Mouse acceleration / Extended Report / Wheel Emulation #728

Open tmk opened 2 years ago

tmk commented 2 years ago

Acceleration

Current impl. of mouse accleration doesn't appear to be proper in ADB coverter. We can depend on OS setting.

I confirmed that Xorg/libinput can manage it well with Apple one-button mouse and Kensington Turbo Mouse 5.

This describes how libinput handles mouse acceleration. https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html

This can seem to spoil mouse precision and resolution, converter Acceleration feature will be disabled or removed.

Extended Report

Most of ADB pointing devices won't require 16-bit report(-32767 to 32767). Even Turbo Mouse 5 limts XY axes from -126 to 126 and 8-bit report is enough there.

16-bit Extend Report has no apparent drawback so far, leave this feature enabled.

Wheel Emulation

current configuration uses button 4 for wheel emulation by default.

This works well with Turbo Mouse 5 using button 4. Xorg/libinput can also emulate scroll wheel, see man 4 libinput.

some user may want to use the button for other usage. Disable wheel emulation in default configuration?

tmk commented 2 years ago

These are disabled by default now.

13d57308be43717d38ec99fe6b7c2152000716d1 ae183105bba6a1c22345dd74619747d02900d29b d3807f41b9edd94967cd8d9fef301ec3cd4cd540

A few works are still needed.