From: Przemo Firszt Date: Sat, 9 Jan 2010 14:20:03 +0000 (+0100) Subject: HID: wacom: Add BTN_TOOL_FINGER for pad button reporting X-Git-Tag: v2.6.33-rc5~75^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e253fdb3b5739fd8514f617ec582762bcfaea48;p=profile%2Fcommon%2Fkernel-common.git HID: wacom: Add BTN_TOOL_FINGER for pad button reporting Without this patch xf86-input-wacom driver wasn't able to properly recognise pad button events. It was also causing some problems with button mapping. Signed-off-by: Przemo Firszt Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c index 75ea66a..12dcda5 100644 --- a/drivers/hid/hid-wacom.c +++ b/drivers/hid/hid-wacom.c @@ -142,6 +142,7 @@ static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report, wdata->butstate = rw; input_report_key(input, BTN_0, rw & 0x02); input_report_key(input, BTN_1, rw & 0x01); + input_report_key(input, BTN_TOOL_FINGER, 0xf0); input_event(input, EV_MSC, MSC_SERIAL, 0xf0); input_sync(input); }