mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:01:14 +07:00
Input: wacom - Cintiq 21UX2 does not have menu strips
So don't set ABS_RX/ABS_RY for them. Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
fabadbc754
commit
71c86ce597
@ -1129,8 +1129,11 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
|
|||||||
__set_bit(BTN_0 + i, input_dev->keybit);
|
__set_bit(BTN_0 + i, input_dev->keybit);
|
||||||
__set_bit(BTN_TOOL_FINGER, input_dev->keybit);
|
__set_bit(BTN_TOOL_FINGER, input_dev->keybit);
|
||||||
|
|
||||||
|
if (wacom_wac->features.type != WACOM_21UX2) {
|
||||||
input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0);
|
input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0);
|
||||||
input_set_abs_params(input_dev, ABS_RY, 0, 4096, 0, 0);
|
input_set_abs_params(input_dev, ABS_RY, 0, 4096, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
|
||||||
wacom_setup_cintiq(wacom_wac);
|
wacom_setup_cintiq(wacom_wac);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user