Merge pull request #38 from geoffholden/pen_prop_direct

Sets the INPUT_PROP_DIRECT bit on the stylus input.
This commit is contained in:
Jake Day 2017-11-17 11:22:51 -05:00 committed by GitHub
commit 73b91c4884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1155,6 +1155,7 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
suffix = "Pen";
/* force BTN_STYLUS to allow tablet matching in udev */
__set_bit(BTN_STYLUS, hi->input->keybit);
__set_bit(INPUT_PROP_DIRECT, hi->input->propbit);
} else {
switch (field->application) {
case HID_GD_KEYBOARD:
@ -1170,6 +1171,7 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
suffix = "Pen";
/* force BTN_STYLUS to allow tablet matching in udev */
__set_bit(BTN_STYLUS, hi->input->keybit);
__set_bit(INPUT_PROP_DIRECT, hi->input->propbit);
break;
case HID_DG_TOUCHSCREEN:
suffix = "Touchscreen";