Skip to content

Commit 4c60bc7

Browse files
spbnickJiri Kosina
authored andcommitted
HID: 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. Signed-off-by: Nikolai Kondrashov <[email protected]> Signed-off-by: José Expósito <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent f592797 commit 4c60bc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/hid/hid-uclogic-params.c

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

714714
/* If it's a custom keyboard interface */
715715
if (bInterfaceNumber == 1) {
716-
/* Keep everything intact */
716+
/* Keep everything intact, but mark pen usage invalid */
717+
p.pen.usage_invalid = true;
717718
goto output;
718719
/* Else, if it's not a pen interface */
719720
} else if (bInterfaceNumber != 0) {

0 commit comments

Comments
 (0)