Re: [PATCH] HID: hid-input: Add eraser usage to hidinput_configure_usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 21, 2017 at 3:37 PM, Ping Cheng <pinglinux@xxxxxxxxx> wrote:
> Some tablets report eraser usage to indicate the eraser tool. But,
> hidinput_configure_usage doesn't support it, which led the usage
> falls into default as ABS_MISC.
>
> Signed-off-by: Ping Cheng <ping.cheng@xxxxxxxxx>
> ---
>  drivers/hid/hid-input.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
> index 199f6a01fc62..4d36b08494fd 100644
> --- a/drivers/hid/hid-input.c
> +++ b/drivers/hid/hid-input.c
> @@ -797,6 +797,10 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
>                         map_key_clear(BTN_STYLUS);
>                         break;
>
> +               case 0x45: /* ERASER */
> +                       map_key_clear(BTN_TOUCH);

Surely you mean BTN_TOOL_RUBBER?

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux