HID: magicmouse: report last touch up
authorChase Douglas <chase.douglas@canonical.com>
Mon, 5 Jul 2010 13:57:52 +0000 (09:57 -0400)
committerJiri Kosina <jkosina@suse.cz>
Sun, 11 Jul 2010 21:01:51 +0000 (23:01 +0200)
commite3612e8669b8c15278058f8dd52e3dc6e7d26710
tree387c8259006adbd4865046ef812613f714d3984f
parentc04266889b591165bdea396b20313bebb83c0fd6
HID: magicmouse: report last touch up

The evdev multitouch protocol requires that a last MT sync event must be
sent after all touches are up. This change adds the last MT sync event
to the hid-magicmouse driver.

Also, don't send events when a touch leaves.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Michael Poole <mdpoole@troilus.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c