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)
commit25bdbfbb2d8331a67824dd03d0087e9c98835f3a
tree5426b7fd427f300c85d3b01b50a288bb36e0ede9
parent4bfb2c72b2bfca8684c2f5c25a3119bad016a9d3
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