Skip to content

Commit

Permalink
HID: fix pad button definition in hid-wacom
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Przemo Firszt authored and Jiri Kosina committed Jan 13, 2010
1 parent 3975bc5 commit d01799b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/hid/hid-wacom.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit d01799b

Please sign in to comment.