]> git.baikalelectronics.ru Git - kernel.git/commit
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65
authorNirenjan Krishnan <nirenjan@gmail.com>
Mon, 29 Mar 2021 16:10:02 +0000 (09:10 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:25:34 +0000 (14:25 +0200)
commit40c3616f7c8e9162c77cb6bba24231446d7d6807
tree5426b7fd427f300c85d3b01b50a288bb36e0ede9
parent6fb27182bf68a493ff5409268a8b710ec2596651
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65

The Saitek X65 joystick has a pair of axes that were used as mouse
pointer controls by the Windows driver. The corresponding usage page is
the Game Controls page, which is not recognized by the generic HID
driver, and therefore, both axes get mapped to ABS_MISC. The quirk makes
the second axis get mapped to ABS_MISC+1, and therefore made available
separately.

Signed-off-by: Nirenjan Krishnan <nirenjan@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c