|
@@ -1959,8 +1959,10 @@ static void wacom_wac_pen_usage_mapping(struct hid_device *hdev,
|
|
input_set_capability(input, EV_KEY, BTN_TOOL_BRUSH);
|
|
input_set_capability(input, EV_KEY, BTN_TOOL_BRUSH);
|
|
input_set_capability(input, EV_KEY, BTN_TOOL_PENCIL);
|
|
input_set_capability(input, EV_KEY, BTN_TOOL_PENCIL);
|
|
input_set_capability(input, EV_KEY, BTN_TOOL_AIRBRUSH);
|
|
input_set_capability(input, EV_KEY, BTN_TOOL_AIRBRUSH);
|
|
- input_set_capability(input, EV_KEY, BTN_TOOL_MOUSE);
|
|
|
|
- input_set_capability(input, EV_KEY, BTN_TOOL_LENS);
|
|
|
|
|
|
+ if (!(features->device_type & WACOM_DEVICETYPE_DIRECT)) {
|
|
|
|
+ input_set_capability(input, EV_KEY, BTN_TOOL_MOUSE);
|
|
|
|
+ input_set_capability(input, EV_KEY, BTN_TOOL_LENS);
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
case WACOM_HID_WD_FINGERWHEEL:
|
|
case WACOM_HID_WD_FINGERWHEEL:
|
|
wacom_map_usage(input, usage, field, EV_ABS, ABS_WHEEL, 0);
|
|
wacom_map_usage(input, usage, field, EV_ABS, ABS_WHEEL, 0);
|