Skip to content

Commit f0d0fef

Browse files
committed
uclogic: Disable pen usage for Huion keyboard interfaces
Disable pen usage inputs for Huion interfaces reporting on-the-frame buttons. We don't want to change those, as they mostly work, but we want to avoid creation of a mute pen interface, confusing to users.
1 parent a1d6ca2 commit f0d0fef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hid-uclogic-params.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,8 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
705705

706706
/* If it's a custom keyboard interface */
707707
if (bInterfaceNumber == 1) {
708-
/* Keep everything intact */
708+
/* Keep everything intact, but mark pen usage invalid */
709+
p.pen.usage_invalid = true;
709710
goto output;
710711
/* Else, if it's not a pen interface */
711712
} else if (bInterfaceNumber != 0) {

0 commit comments

Comments
 (0)