diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2010-08-30 06:06:35 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-09-01 06:36:35 -0400 |
commit | 4b5b4575ce08a2597a21337b4f5404fa0a289403 (patch) | |
tree | f12d9424fc5f4d02008a2c6b05d31785541eaf9a /drivers/hid | |
parent | 72a46344867111c3e019b169ddfa9e1a1f55c759 (diff) |
HID: waltop: fix Media Tablet 10.6 inch scrolling
Add support for horizontal scrolling with Waltop Media Tablet 10.6 inch by
updating the fixed HID report descriptor.
The horizontal/vertical scrolling is toggled by pressing the wheels' center
buttons while in scroll mode, which wasn't discovered at the time the
support for this tablet was added.
Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-waltop.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/hid/hid-waltop.c b/drivers/hid/hid-waltop.c index 81cb4edb6b6b..b9d49e4a392d 100644 --- a/drivers/hid/hid-waltop.c +++ b/drivers/hid/hid-waltop.c | |||
@@ -221,9 +221,10 @@ static __u8 slim_tablet_5_8_inch_rdesc_fixed[] = { | |||
221 | * wheels' function button in the newer version. | 221 | * wheels' function button in the newer version. |
222 | * | 222 | * |
223 | * The wheel functions are: | 223 | * The wheel functions are: |
224 | * scroll - the wheels act as scroll wheels, the center buttons do nothing. | 224 | * scroll - the wheels act as scroll wheels, the center buttons switch |
225 | * zoom - the wheels zoom in/out, the buttons supposedly reset to 100%. | 225 | * between vertical and horizontal scrolling; |
226 | * volume - the wheels control the sound volume, the buttons mute. | 226 | * zoom - the wheels zoom in/out, the buttons supposedly reset to 100%; |
227 | * volume - the wheels control the sound volume, the buttons mute; | ||
227 | * brush - the wheels are supposed to control brush width in a graphics | 228 | * brush - the wheels are supposed to control brush width in a graphics |
228 | * editor, the buttons do nothing. | 229 | * editor, the buttons do nothing. |
229 | * | 230 | * |
@@ -460,16 +461,17 @@ static __u8 media_tablet_10_6_inch_rdesc_fixed[] = { | |||
460 | 0x85, 0x01, /* Report ID (1), */ | 461 | 0x85, 0x01, /* Report ID (1), */ |
461 | 0x09, 0x01, /* Usage (Pointer), */ | 462 | 0x09, 0x01, /* Usage (Pointer), */ |
462 | 0xA0, /* Collection (Physical), */ | 463 | 0xA0, /* Collection (Physical), */ |
463 | 0x95, 0x01, /* Report Count (1), */ | 464 | 0x75, 0x08, /* Report Size (8), */ |
464 | 0x75, 0x18, /* Report Size (24), */ | 465 | 0x95, 0x03, /* Report Count (3), */ |
465 | 0x81, 0x03, /* Input (Constant, Variable), */ | 466 | 0x81, 0x03, /* Input (Constant, Variable), */ |
466 | 0x05, 0x01, /* Usage Page (Desktop), */ | 467 | 0x95, 0x02, /* Report Count (2), */ |
467 | 0x09, 0x38, /* Usage (Wheel), */ | ||
468 | 0x15, 0xFF, /* Logical Minimum (-1), */ | 468 | 0x15, 0xFF, /* Logical Minimum (-1), */ |
469 | 0x25, 0x01, /* Logical Maximum (1), */ | 469 | 0x25, 0x01, /* Logical Maximum (1), */ |
470 | 0x75, 0x08, /* Report Size (8), */ | 470 | 0x09, 0x38, /* Usage (Wheel), */ |
471 | 0x0B, 0x38, 0x02, /* Usage (Consumer AC Pan), */ | ||
472 | 0x0C, 0x00, | ||
471 | 0x81, 0x06, /* Input (Variable, Relative), */ | 473 | 0x81, 0x06, /* Input (Variable, Relative), */ |
472 | 0x75, 0x18, /* Report Size (24), */ | 474 | 0x95, 0x02, /* Report Count (2), */ |
473 | 0x81, 0x03, /* Input (Constant, Variable), */ | 475 | 0x81, 0x03, /* Input (Constant, Variable), */ |
474 | 0xC0, /* End Collection, */ | 476 | 0xC0, /* End Collection, */ |
475 | 0xC0, /* End Collection, */ | 477 | 0xC0, /* End Collection, */ |