]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: uclogic: Use Rx and Ry for touch strips
authorJosé Expósito <jose.exposito89@gmail.com>
Fri, 24 May 2024 11:21:36 +0000 (13:21 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 4 Jun 2024 08:12:54 +0000 (10:12 +0200)
commit06483d251df678907b1d627d67b5464beb5358b3
tree1918dc678923ce25f4b9eb0494dc7f25995bd2de
parent48144e83daba5619adaf0baf4fcea98082dce818
HID: uclogic: Use Rx and Ry for touch strips

Currently, HUION devices use ABS_WHEEL as the usage for touch strips.

There are 2 main issues with this approach:

The first one is that the descriptor for touch rings
(uclogic_rdesc_v2_frame_touch_ring_arr) also uses ABS_WHEEL.
>From user-space it is impossible to know which device sends the events.

The second one is that Wacom uses ABS_RX/ABS_RY to notify events from
touch strips and user-space was designed to handle those axes.

Change the usage of touch strips to Rx/Ry to fix both issues.

Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/989
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-uclogic-rdesc.c