Merge pull request #38 from geoffholden/pen_prop_direct
Sets the INPUT_PROP_DIRECT bit on the stylus input.
This commit is contained in:
commit
73b91c4884
|
@ -1155,6 +1155,7 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
|
||||||
suffix = "Pen";
|
suffix = "Pen";
|
||||||
/* force BTN_STYLUS to allow tablet matching in udev */
|
/* force BTN_STYLUS to allow tablet matching in udev */
|
||||||
__set_bit(BTN_STYLUS, hi->input->keybit);
|
__set_bit(BTN_STYLUS, hi->input->keybit);
|
||||||
|
__set_bit(INPUT_PROP_DIRECT, hi->input->propbit);
|
||||||
} else {
|
} else {
|
||||||
switch (field->application) {
|
switch (field->application) {
|
||||||
case HID_GD_KEYBOARD:
|
case HID_GD_KEYBOARD:
|
||||||
|
@ -1170,6 +1171,7 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
|
||||||
suffix = "Pen";
|
suffix = "Pen";
|
||||||
/* force BTN_STYLUS to allow tablet matching in udev */
|
/* force BTN_STYLUS to allow tablet matching in udev */
|
||||||
__set_bit(BTN_STYLUS, hi->input->keybit);
|
__set_bit(BTN_STYLUS, hi->input->keybit);
|
||||||
|
__set_bit(INPUT_PROP_DIRECT, hi->input->propbit);
|
||||||
break;
|
break;
|
||||||
case HID_DG_TOUCHSCREEN:
|
case HID_DG_TOUCHSCREEN:
|
||||||
suffix = "Touchscreen";
|
suffix = "Touchscreen";
|
||||||
|
|
Loading…
Reference in a new issue