HID: fix pad button definition in hid-wacom
This fix is required for xorg driver to recognise 2 pad buttons Signed-off-by: Przemo Firszt <przemo@firszt.eu> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
3975bc5630
commit
d01799b2f3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue