HID: add a device driver for the Apple Magic Mouse.
authorMichael Poole <mdpoole@troilus.org>
Sat, 6 Feb 2010 17:24:36 +0000 (12:24 -0500)
committerJiri Kosina <jkosina@suse.cz>
Wed, 10 Feb 2010 13:57:33 +0000 (14:57 +0100)
commit128537cea464d919febeaea2000e256749f317eb
treee9d661d8ca243f90b32adda5e6b4c6115bc7767a
parent90a006abf8015c8cab893555244d8fc673b24839
HID: add a device driver for the Apple Magic Mouse.

The Magic Mouse requires that a driver send an unlock Report(Feature) command,
similar to the Wacom wireless tablet and Sixaxis controller quirks.  This turns
on an Input Report that isn't published in the input Report descriptor that
contains touch data (and usually overrides the normal motion and click Report).

Because the mouse has only one switch and no scroll wheel, the driver
(under control of parameters) emulates a middle button and scroll wheel.
User space could also ignore and/or re-synthesize those events based on
the reported events.

Some user-space tools to talk to the mouse directly (that is, when it is not
associated with the host's HIDP stack) are at
http://github.com/entrope/linux-magicmouse

Signed-off-by: Michael Poole <mdpoole@troilus.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-magicmouse.c [new file with mode: 0644]