aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2007-11-26 13:18:00 +0100
committerJiri Kosina <jkosina@suse.cz>2008-01-28 14:51:21 +0100
commit36ccaad640737899b069a9a93a82765f0e675a20 (patch)
treef827fe9e5d59bcb2bdcba542070c8d9a790b0ce1 /include
parentHID: separate hid-input event quirks from generic code (diff)
downloadlinux-dev-36ccaad640737899b069a9a93a82765f0e675a20.tar.xz
linux-dev-36ccaad640737899b069a9a93a82765f0e675a20.zip
HID: hid-input quirk for BTC 8193
BTC 8193 keyboard handles its scrollwheel in very non-standard way. It produces two non-standard usages for scrolling up and down, in both cases with postive value equaling to 1. We handle this by temporary mapping, which we then catch in quirk event handler, and remap to negative HWHEEL even in order to introduce correct behavior. Also the button requires special mapping, as it triggers standard-violating usage code. Reported in kernel.org bugzilla #9385 Reported-by: Kir Kolyshkin <kir@sacred.ru> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index dca5804836f3..33ec33389b37 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -282,6 +282,7 @@ struct hid_item {
#define HID_QUIRK_LOGITECH_EXPANDED_KEYMAP 0x00800000
#define HID_QUIRK_IGNORE_HIDINPUT 0x01000000
#define HID_QUIRK_2WHEEL_MOUSE_HACK_B8 0x02000000
+#define HID_QUIRK_HWHEEL_WHEEL_INVERT 0x04000000
/*
* Separate quirks for runtime report descriptor fixup