]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
HID: magicmouse: Set multi-touch keybits for Magic Mouse
authorChe-Liang Chiou <clchiou@chromium.org>
Fri, 7 Apr 2017 08:12:36 +0000 (10:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 5 May 2017 13:31:35 +0000 (15:31 +0200)
commitf4b65b9563216b3e01a5cc844c3ba68901d9b195
tree61836f7908cbfb41eb933d1cc6986fd85c39ba31
parent2ac97f0f6654da14312d125005c77a6010e0ea38
HID: magicmouse: Set multi-touch keybits for Magic Mouse

The driver emits multi-touch events for Magic Trackpad as well as Magic
Mouse, but it does not set keybits that are related to multi-touch event
for Magic Mouse; so set these keybits.

The keybits that are not set cause trouble because user programs often
probe these keybits for self-configuration and thus they cannot operate
properly if the keybits are not set.

One of such troubles is that libevdev will not be able to emit correct
touch count, causing gestures library failed to do fling stop.

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c