RicardoEPRodrigues / magicmouse-hid

Magic Mouse 2 driver for Linux.
147 stars 15 forks source link

Inertia scroll like macOS #14

Open ayushhroyy opened 2 years ago

ayushhroyy commented 2 years ago

Greetings, Could inertia scrolling be supported with magic mouse 2 as in macOS anytime soon?

RicardoEPRodrigues commented 2 years ago

Hello,

Thank you for your comment. I think I'll leave this open because it is something that needs to be discussed.

First off, you will not see that behavior implemented here, that is because this driver is not supposed to deal with those types of behaviors. This driver should only expose the direct input of the user on the hardware and pass it on to the OS. Afterward the OS, more specifically libinput, will pick it up and transform it into an input to the applications. This is where the behavior should be added.

From what I know, this driver is more or less where it should be regarding functionality. The next step would be to modify libinput so that it would use the input from the driver to create behaviors, such as inertia scroll or even gestures. This requires a lot of modification for a single device, something the maintainers are not ready to sustain (and is justifiable). So I am waiting for my work to lift so that I have time to make those changes myself. I do not know when I'll have the time.