HID: Implement horizontal wheel handling for A4 Tech X5-005D
authorPavel Troller <patrol@sinus.cz>
Mon, 29 Oct 2007 10:13:46 +0000 (11:13 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 28 Jan 2008 13:51:19 +0000 (14:51 +0100)
commitc80e5ffac0579499ca28444155118ffcdd9b8d7e
tree628e11f985ee165a7a7f13a547baabcd42fc094e
parenta45d82d19a6c2a717bcc33cff243199b77fa0082
HID: Implement horizontal wheel handling for A4 Tech X5-005D

This mouse distinguishes horizontal wheel from vertical by a special "pseudo
event" GenericDesktop.00b8, with values of 0 for vertical and 8 for horizontal
wheel. Because this event is supplied by the parser too late, we need to delay
a wheel event, wait for this one and send either REL_WHEEL or REL_HWHEEL to
input depending on the event value.

Signed-off-by: Pavel Troller <patrol@sinus.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
drivers/hid/usbhid/hid-quirks.c
include/linux/hid.h