mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Input: wacom - add serial number for Graphire4 and old Bamboo
With the removal of BTN_TOOL_FINGER for tablet buttons and expresskeys, serial number is needed to distingush if the events were from a regular tool (stylus, eraser, or mouse) or the attribures (buttons, strips, or wheels) on the tablet since there are overlapped events between the tools and the tablet attributes. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Chris Bagwell <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
358ea22ee3
commit
998c454e1c
1 changed files with 1 additions and 0 deletions
|
|
@ -265,6 +265,7 @@ static int wacom_graphire_irq(struct wacom_wac *wacom)
|
|||
wacom->id[0] = 0;
|
||||
input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */
|
||||
input_report_key(input, wacom->tool[0], prox);
|
||||
input_event(input, EV_MSC, MSC_SERIAL, 1);
|
||||
input_sync(input); /* sync last event */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue