HID: magicmouse: enable high-resolution scroll
authorJosé Expósito <jose.exposito89@gmail.com>
Wed, 7 Jul 2021 15:58:21 +0000 (17:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 15 Jul 2021 19:16:39 +0000 (21:16 +0200)
commitd4b9f10a0eb64c623217eb5938d913974afbe9d2
tree619822b22c0702ac08c75c92a13089fba9c792be
parentdf04fbe8680bfe07f3d7487eccff9f768bb02533
HID: magicmouse: enable high-resolution scroll

The Magic Mouse, generations 1 and 2, doesn't have a physical scroll
wheel, instead, the REL_WHEEL and REL_HWHEEL events are emulated
when sliding a finger on the surface of the mouse.
However, the smooth movement of the finger is transformed into a step
based scroll on the screen, leading to a suboptimal user experience.

Emulate high-resolution scroll by sending REL_WHEEL_HI_RES and
REL_HWHEEL_HI_RES events so the scroll on the screen is closer to the
finger movement.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c