HID: a4tech: use A4_2WHEEL_MOUSE_HACK_B8 for A4TECH NB-95
authorMateusz Jończyk <mat.jonczyk@o2.pl>
Tue, 6 Apr 2021 18:25:38 +0000 (20:25 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:29:13 +0000 (14:29 +0200)
commit9858c74c29e12be5886280725e781cb735b2aca6
tree5d725f0150191f242c19631e6e452eb7216369f8
parented80bdc4571fae177c44eba0997a0d551fc21e15
HID: a4tech: use A4_2WHEEL_MOUSE_HACK_B8 for A4TECH NB-95

This mouse has a horizontal wheel that requires special handling.
Without this patch, the horizontal wheel acts like a vertical wheel.

In the output of `hidrd-convert` for this mouse, there is a
`Usage (B8h)` field. It corresponds to a byte in packets sent by the
device that specifies which wheel generated an input event.

The name "A4TECH" is spelled in all capitals on the company website.

Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-a4tech.c
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c