summaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/hid-input.c
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@suse.cz>2005-09-05 00:13:15 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2005-09-05 00:13:15 -0500
commitc58de6d949a9d2c386c4d814013b6c967c14ea5a (patch)
tree4b47ed0557e95151119e91a1763a582e6bb9a05c /drivers/usb/input/hid-input.c
parentc4786ca8a4274a0bbffe217917972943348bed64 (diff)
downloadop-kernel-dev-c58de6d949a9d2c386c4d814013b6c967c14ea5a.zip
op-kernel-dev-c58de6d949a9d2c386c4d814013b6c967c14ea5a.tar.gz
Input: HID - add a quirk for the Apple Powermouse
Add a quirk for the Apple Powermouse, remapping GenericDesktop.Z to Rel.HWheel, to allow horizontal scrolling in Linux. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/hid-input.c')
-rw-r--r--drivers/usb/input/hid-input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
index 22f9d91..14acfc5 100644
--- a/drivers/usb/input/hid-input.c
+++ b/drivers/usb/input/hid-input.c
@@ -396,6 +396,9 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
if (usage->code > max)
goto ignore;
+ if (((device->quirks & (HID_QUIRK_2WHEEL_POWERMOUSE)) && (usage->hid == 0x00010032)))
+ map_rel(REL_HWHEEL);
+
if ((device->quirks & (HID_QUIRK_2WHEEL_MOUSE_HACK_7 | HID_QUIRK_2WHEEL_MOUSE_HACK_5)) &&
(usage->type == EV_REL) && (usage->code == REL_WHEEL))
set_bit(REL_HWHEEL, bit);
OpenPOWER on IntegriCloud