mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-17 12:34:01 +00:00
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 <spbnick@gmail.com> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
f5927973f8
commit
4c60bc7d1f
1 changed files with 2 additions and 1 deletions
|
@ -713,7 +713,8 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
|
|||
|
||||
/* If it's a custom keyboard interface */
|
||||
if (bInterfaceNumber == 1) {
|
||||
/* Keep everything intact */
|
||||
/* Keep everything intact, but mark pen usage invalid */
|
||||
p.pen.usage_invalid = true;
|
||||
goto output;
|
||||
/* Else, if it's not a pen interface */
|
||||
} else if (bInterfaceNumber != 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue