mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 16:20:05 +01:00
test: move the Intuos 5 and Cintiq 13HD test tablets into the same device group
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
This commit is contained in:
parent
61e8542d6e
commit
f73527b8de
6 changed files with 43 additions and 1 deletions
|
|
@ -88,6 +88,15 @@ static int events[] = {
|
|||
-1, -1,
|
||||
};
|
||||
|
||||
static const char udev_rule[] =
|
||||
"ACTION==\"remove\", GOTO=\"rule_end\"\n"
|
||||
"KERNEL!=\"event*\", GOTO=\"rule_end\"\n"
|
||||
"\n"
|
||||
"ATTRS{name}==\"litest Wacom Cintiq 13 HD touch Finger*\",\\\n"
|
||||
" ENV{LIBINPUT_DEVICE_GROUP}=\"wacom-13hdt-group\"\n"
|
||||
"\n"
|
||||
"LABEL=\"rule_end\"";
|
||||
|
||||
struct litest_test_device litest_wacom_cintiq_13hdt_finger_device = {
|
||||
.type = LITEST_WACOM_CINTIQ_13HDT_FINGER,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
@ -99,4 +108,5 @@ struct litest_test_device litest_wacom_cintiq_13hdt_finger_device = {
|
|||
.id = &input_id,
|
||||
.events = events,
|
||||
.absinfo = absinfo,
|
||||
.udev_rule = udev_rule,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -102,7 +102,8 @@ static const char udev_rule[] =
|
|||
"KERNEL!=\"event*\", GOTO=\"pad_end\"\n"
|
||||
"\n"
|
||||
"ATTRS{name}==\"litest Wacom Cintiq 13 HD touch Pad*\",\\\n"
|
||||
" ENV{ID_INPUT_TABLET_PAD}=\"1\"\n"
|
||||
" ENV{ID_INPUT_TABLET_PAD}=\"1\",\\\n"
|
||||
" ENV{LIBINPUT_DEVICE_GROUP}=\"wacom-13hdt-group\"\n"
|
||||
"\n"
|
||||
"LABEL=\"pad_end\"";
|
||||
|
||||
|
|
|
|||
|
|
@ -133,6 +133,15 @@ static int events[] = {
|
|||
-1, -1,
|
||||
};
|
||||
|
||||
static const char udev_rule[] =
|
||||
"ACTION==\"remove\", GOTO=\"rule_end\"\n"
|
||||
"KERNEL!=\"event*\", GOTO=\"rule_end\"\n"
|
||||
"\n"
|
||||
"ATTRS{name}==\"litest Wacom Cintiq 13 HD touch Pen*\",\\\n"
|
||||
" ENV{LIBINPUT_DEVICE_GROUP}=\"wacom-13hdt-group\"\n"
|
||||
"\n"
|
||||
"LABEL=\"rule_end\"";
|
||||
|
||||
struct litest_test_device litest_wacom_cintiq_13hdt_pen_device = {
|
||||
.type = LITEST_WACOM_CINTIQ_13HDT_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT,
|
||||
|
|
@ -144,4 +153,5 @@ struct litest_test_device litest_wacom_cintiq_13hdt_pen_device = {
|
|||
.id = &input_id,
|
||||
.events = events,
|
||||
.absinfo = absinfo,
|
||||
.udev_rule = udev_rule,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -90,6 +90,15 @@ static int events[] = {
|
|||
-1, -1,
|
||||
};
|
||||
|
||||
static const char udev_rule[] =
|
||||
"ACTION==\"remove\", GOTO=\"rule_end\"\n"
|
||||
"KERNEL!=\"event*\", GOTO=\"rule_end\"\n"
|
||||
"\n"
|
||||
"ATTRS{name}==\"litest Wacom Intuos5 touch M Finger*\",\\\n"
|
||||
" ENV{LIBINPUT_DEVICE_GROUP}=\"wacom-i5-group\"\n"
|
||||
"\n"
|
||||
"LABEL=\"rule_end\"";
|
||||
|
||||
struct litest_test_device litest_wacom_finger_device = {
|
||||
.type = LITEST_WACOM_FINGER,
|
||||
.features = LITEST_TOUCHPAD,
|
||||
|
|
@ -101,4 +110,5 @@ struct litest_test_device litest_wacom_finger_device = {
|
|||
.id = &input_id,
|
||||
.events = events,
|
||||
.absinfo = absinfo,
|
||||
.udev_rule = udev_rule,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -149,6 +149,15 @@ static int events[] = {
|
|||
-1, -1,
|
||||
};
|
||||
|
||||
static const char udev_rule[] =
|
||||
"ACTION==\"remove\", GOTO=\"rule_end\"\n"
|
||||
"KERNEL!=\"event*\", GOTO=\"rule_end\"\n"
|
||||
"\n"
|
||||
"ATTRS{name}==\"litest Wacom Intuos5 touch M Pen*\",\\\n"
|
||||
" ENV{LIBINPUT_DEVICE_GROUP}=\"wacom-i5-group\"\n"
|
||||
"\n"
|
||||
"LABEL=\"rule_end\"";
|
||||
|
||||
struct litest_test_device litest_wacom_intuos_tablet_device = {
|
||||
.type = LITEST_WACOM_INTUOS,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT,
|
||||
|
|
@ -160,4 +169,5 @@ struct litest_test_device litest_wacom_intuos_tablet_device = {
|
|||
.id = &input_id,
|
||||
.events = events,
|
||||
.absinfo = absinfo,
|
||||
.udev_rule = udev_rule,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ static const char udev_rule[] =
|
|||
"KERNEL!=\"event*\", GOTO=\"pad_end\"\n"
|
||||
"\n"
|
||||
"ATTRS{name}==\"litest Wacom Intuos5 touch M Pad*\",\\\n"
|
||||
" ENV{LIBINPUT_DEVICE_GROUP}=\"wacom-i5-group\",\\\n"
|
||||
" ENV{ID_INPUT_TABLET_PAD}=\"1\"\n"
|
||||
"\n"
|
||||
"LABEL=\"pad_end\"";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue