Commit d01799b2 authored by Przemo Firszt's avatar Przemo Firszt Committed by Jiri Kosina

HID: fix pad button definition in hid-wacom

This fix is required for xorg driver to recognise 2 pad buttons
Signed-off-by: default avatarPrzemo Firszt <przemo@firszt.eu>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 3975bc56
...@@ -196,6 +196,9 @@ static int wacom_probe(struct hid_device *hdev, ...@@ -196,6 +196,9 @@ static int wacom_probe(struct hid_device *hdev,
/* Pad */ /* Pad */
input->evbit[0] |= BIT(EV_MSC); input->evbit[0] |= BIT(EV_MSC);
input->mscbit[0] |= BIT(MSC_SERIAL); input->mscbit[0] |= BIT(MSC_SERIAL);
set_bit(BTN_0, input->keybit);
set_bit(BTN_1, input->keybit);
set_bit(BTN_TOOL_FINGER, input->keybit);
/* Distance, rubber and mouse */ /* Distance, rubber and mouse */
input->absbit[0] |= BIT(ABS_DISTANCE); input->absbit[0] |= BIT(ABS_DISTANCE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment