]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ad0d82528a6b1c16ba0cc729a490997b1236409
tree5d725f0150191f242c19631e6e452eb7216369f8
parentc4e227c8c517d8a8be3d661846b13fad39e6ca99
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