Skip to content

Commit 48144e8

Browse files
JoseExpositoJiri Kosina
authored andcommitted
HID: uclogic: Support HUION devices with up to 20 buttons
The HID descriptor for HUION tablets was limited to 13 buttons. However, there are devices with more buttons in their frames. So far, the device with more buttons released by HUION is the Huion Kamvas Pro 24 (GT-240, QHD) [1], with 20 buttons. Tweak the HID descriptor to support it. Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/989 [1] Signed-off-by: José Expósito <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 70ec81c commit 48144e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hid/hid-uclogic-rdesc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,10 @@ const size_t uclogic_rdesc_v2_pen_template_size =
689689
0xA0, /* Collection (Physical), */ \
690690
0x05, 0x09, /* Usage Page (Button), */ \
691691
0x19, 0x01, /* Usage Minimum (01h), */ \
692-
0x29, 0x03, /* Usage Maximum (03h), */ \
693-
0x95, 0x03, /* Report Count (3), */ \
692+
0x29, 0x0A, /* Usage Maximum (0Ah), */ \
693+
0x95, 0x0A, /* Report Count (10), */ \
694694
0x81, 0x02, /* Input (Variable), */ \
695-
0x95, ((_size) * 8 - 45), \
695+
0x95, ((_size) * 8 - 52), \
696696
/* Report Count (padding), */ \
697697
0x81, 0x01, /* Input (Constant), */ \
698698
0xC0, /* End Collection, */ \

0 commit comments

Comments
 (0)