Demand for hid_input.c's process

Started by Takeuchi, Toshiki on Sep 11, 2017 · 2 messages from 2 authors · Last reply Sep 11, 2017

open the first message on its own page

Message details and related content
Dear Sir or Madam

I'm facing a problem because of the implementation in "hid_input.c".
The function, “hidinput_configure_usage()” handles many usage.
However, usage=0x45(Eraser) is not supported on usage-page “HID_UP_DIGITIZER”.
So, this function add key “BTN_MISC” to map (because unknown usage) then.
I’d like to add the key which is endemic to eraser like “BTN_ERASER”.
Could you please add the process to “hidinput_configure_usage()”?
Or, if you can’t, could you please permit me to fix the process?

Thank you,
Best Regards,
Takeuchi.

------------------------------------------
竹内 俊貴(Takeuchi Toshiki)

〒160-6135
東京都新宿区西新宿8丁目17番1号
住友不動産新宿グランドタワー35階
Email:takeuchi.toshiki@wacom.co.jp
Tel:+81-80-9989-9873
------------------------------------------
Message details and related content
Hi Takeuchi,

On Sun, Sep 10, 2017 at 8:06 PM, Takeuchi, Toshiki
[off-list ref] wrote:
Dear Sir or Madam

I'm facing a problem because of the implementation in "hid_input.c".
The function, “hidinput_configure_usage()” handles many usage.
However, usage=0x45(Eraser) is not supported on usage-page “HID_UP_DIGITIZER”.
So, this function add key “BTN_MISC” to map (because unknown usage) then.
I’d like to add the key which is endemic to eraser like “BTN_ERASER”.
The event code for the eraser is BTN_TOOL_RUBBER:

#define BTN_TOOL_PEN            0x140
#define BTN_TOOL_RUBBER         0x141
#define BTN_TOOL_BRUSH          0x142
#define BTN_TOOL_PENCIL         0x143
#define BTN_TOOL_AIRBRUSH       0x144
#define BTN_TOOL_FINGER         0x145
#define BTN_TOOL_MOUSE          0x146
#define BTN_TOOL_LENS           0x147
Could you please add the process to “hidinput_configure_usage()”?
Or, if you can’t, could you please permit me to fix the process?
Please send a patch with proposed changes.

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help