|
@@ -2089,32 +2089,17 @@ int wacom_setup_pentouch_input_capabilities(struct input_dev *input_dev,
|
|
wacom_abs_set_axis(input_dev, wacom_wac);
|
|
wacom_abs_set_axis(input_dev, wacom_wac);
|
|
|
|
|
|
switch (features->type) {
|
|
switch (features->type) {
|
|
- case WACOM_MO:
|
|
|
|
- case WACOM_G4:
|
|
|
|
- /* fall through */
|
|
|
|
-
|
|
|
|
- case GRAPHIRE:
|
|
|
|
- input_set_capability(input_dev, EV_REL, REL_WHEEL);
|
|
|
|
-
|
|
|
|
- __set_bit(BTN_LEFT, input_dev->keybit);
|
|
|
|
- __set_bit(BTN_RIGHT, input_dev->keybit);
|
|
|
|
- __set_bit(BTN_MIDDLE, input_dev->keybit);
|
|
|
|
-
|
|
|
|
- __set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
|
|
|
|
- __set_bit(BTN_TOOL_PEN, input_dev->keybit);
|
|
|
|
- __set_bit(BTN_TOOL_MOUSE, input_dev->keybit);
|
|
|
|
- __set_bit(BTN_STYLUS, input_dev->keybit);
|
|
|
|
- __set_bit(BTN_STYLUS2, input_dev->keybit);
|
|
|
|
-
|
|
|
|
- __set_bit(INPUT_PROP_POINTER, input_dev->propbit);
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
case GRAPHIRE_BT:
|
|
case GRAPHIRE_BT:
|
|
__clear_bit(ABS_MISC, input_dev->absbit);
|
|
__clear_bit(ABS_MISC, input_dev->absbit);
|
|
|
|
+
|
|
|
|
+ case WACOM_MO:
|
|
|
|
+ case WACOM_G4:
|
|
input_set_abs_params(input_dev, ABS_DISTANCE, 0,
|
|
input_set_abs_params(input_dev, ABS_DISTANCE, 0,
|
|
features->distance_max,
|
|
features->distance_max,
|
|
0, 0);
|
|
0, 0);
|
|
|
|
+ /* fall through */
|
|
|
|
|
|
|
|
+ case GRAPHIRE:
|
|
input_set_capability(input_dev, EV_REL, REL_WHEEL);
|
|
input_set_capability(input_dev, EV_REL, REL_WHEEL);
|
|
|
|
|
|
__set_bit(BTN_LEFT, input_dev->keybit);
|
|
__set_bit(BTN_LEFT, input_dev->keybit);
|
|
@@ -2131,30 +2116,13 @@ int wacom_setup_pentouch_input_capabilities(struct input_dev *input_dev,
|
|
break;
|
|
break;
|
|
|
|
|
|
case WACOM_24HD:
|
|
case WACOM_24HD:
|
|
- input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
|
|
- input_abs_set_res(input_dev, ABS_Z, 287);
|
|
|
|
- input_set_abs_params(input_dev, ABS_THROTTLE, 0, 71, 0, 0);
|
|
|
|
- /* fall through */
|
|
|
|
-
|
|
|
|
case DTK:
|
|
case DTK:
|
|
- __set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
|
|
|
|
-
|
|
|
|
- wacom_setup_cintiq(wacom_wac);
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
case WACOM_22HD:
|
|
case WACOM_22HD:
|
|
case WACOM_21UX2:
|
|
case WACOM_21UX2:
|
|
case WACOM_BEE:
|
|
case WACOM_BEE:
|
|
case CINTIQ:
|
|
case CINTIQ:
|
|
- input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
|
|
- input_abs_set_res(input_dev, ABS_Z, 287);
|
|
|
|
-
|
|
|
|
- __set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
|
|
|
|
-
|
|
|
|
- wacom_setup_cintiq(wacom_wac);
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
case WACOM_13HD:
|
|
case WACOM_13HD:
|
|
|
|
+ case CINTIQ_HYBRID:
|
|
input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
input_abs_set_res(input_dev, ABS_Z, 287);
|
|
input_abs_set_res(input_dev, ABS_Z, 287);
|
|
__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
|
|
__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
|
|
@@ -2164,6 +2132,10 @@ int wacom_setup_pentouch_input_capabilities(struct input_dev *input_dev,
|
|
case INTUOS3:
|
|
case INTUOS3:
|
|
case INTUOS3L:
|
|
case INTUOS3L:
|
|
case INTUOS3S:
|
|
case INTUOS3S:
|
|
|
|
+ case INTUOS4:
|
|
|
|
+ case INTUOS4WL:
|
|
|
|
+ case INTUOS4L:
|
|
|
|
+ case INTUOS4S:
|
|
input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
input_abs_set_res(input_dev, ABS_Z, 287);
|
|
input_abs_set_res(input_dev, ABS_Z, 287);
|
|
/* fall through */
|
|
/* fall through */
|
|
@@ -2202,17 +2174,6 @@ int wacom_setup_pentouch_input_capabilities(struct input_dev *input_dev,
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
|
|
|
|
- case INTUOS4:
|
|
|
|
- case INTUOS4WL:
|
|
|
|
- case INTUOS4L:
|
|
|
|
- case INTUOS4S:
|
|
|
|
- input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
|
|
- input_abs_set_res(input_dev, ABS_Z, 287);
|
|
|
|
- wacom_setup_intuos(wacom_wac);
|
|
|
|
-
|
|
|
|
- __set_bit(INPUT_PROP_POINTER, input_dev->propbit);
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
case WACOM_24HDT:
|
|
case WACOM_24HDT:
|
|
if (features->device_type == BTN_TOOL_FINGER) {
|
|
if (features->device_type == BTN_TOOL_FINGER) {
|
|
input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0);
|
|
input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0);
|
|
@@ -2308,14 +2269,6 @@ int wacom_setup_pentouch_input_capabilities(struct input_dev *input_dev,
|
|
0, 0);
|
|
0, 0);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
-
|
|
|
|
- case CINTIQ_HYBRID:
|
|
|
|
- input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
|
|
|
- input_abs_set_res(input_dev, ABS_Z, 287);
|
|
|
|
- __set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
|
|
|
|
-
|
|
|
|
- wacom_setup_cintiq(wacom_wac);
|
|
|
|
- break;
|
|
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|