mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 17:28:56 +00:00
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 */
|
||||
input->evbit[0] |= BIT(EV_MSC);
|
||||
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 */
|
||||
input->absbit[0] |= BIT(ABS_DISTANCE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user