mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
test: add clang-format directives to prevent formatting
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1246>
This commit is contained in:
parent
4295c9bc1f
commit
784312a494
112 changed files with 483 additions and 3 deletions
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x4567,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -44,7 +45,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 2000, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1400, 0, 0, 0 },
|
||||
|
|
@ -55,6 +58,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* This device only exists to verify that the EVDEV_ABS override bits work
|
||||
* correctly */
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x1558,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_ESC,
|
||||
EV_KEY, KEY_1,
|
||||
|
|
@ -187,6 +188,7 @@ static int events[] = {
|
|||
EV_KEY, KEY_FN,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ACER_HAWAII_KEYBOARD,
|
||||
.features = LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ static struct input_id input_id = {
|
|||
.product = 0x1558,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -70,7 +71,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1151, 0, 0, 12 },
|
||||
{ ABS_Y, 0, 738, 0, 0, 14 },
|
||||
|
|
@ -80,6 +83,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ACER_HAWAII_TOUCHPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 5999, 0, 0, 26 },
|
||||
{ ABS_Y, 0, 4499, 0, 0, 15 },
|
||||
|
|
@ -85,6 +86,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_TILT_Y, -128, 127, 0, 0, 0 }, /* mute axis */
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -92,6 +94,7 @@ static struct input_id input_id = {
|
|||
.product = 0x10,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_ESC,
|
||||
EV_KEY, KEY_F1,
|
||||
|
|
@ -145,6 +148,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SERIAL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_AIPTEK,
|
||||
.features = LITEST_TABLET | LITEST_HOVER | LITEST_FORCED_PROXOUT,
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@ static struct input_id input_id = {
|
|||
.version = 0x700,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -153,8 +154,10 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* Note: we use the user-supplied resolution here, see #408 */
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 4095, 0, 0, 37 },
|
||||
{ ABS_Y, 0, 2047, 0, 0, 26 },
|
||||
|
|
@ -165,6 +168,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ALPS_3FG,
|
||||
.features = LITEST_TOUCHPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ static struct input_id input_id = {
|
|||
.version = 0x310,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -92,7 +93,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_SEMI_MT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 2000, 0, 0, 25 },
|
||||
{ ABS_Y, 0, 1400, 0, 0, 32 },
|
||||
|
|
@ -103,6 +106,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest ALPS Touchpad]\n"
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ static struct input_id input_id = {
|
|||
.product = 0x8,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -91,7 +92,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_SEMI_MT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 2000, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1400, 0, 0, 0 },
|
||||
|
|
@ -102,6 +105,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ALPS_SEMI_MT,
|
||||
.features = LITEST_TOUCHPAD | LITEST_BUTTON | LITEST_SEMI_MT,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ static struct input_id input_id = {
|
|||
.product = 0xfa50,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_HWHEEL,
|
||||
EV_KEY, KEY_ESC,
|
||||
|
|
@ -183,7 +184,9 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_VOLUME, 0, 4096, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 255, 0, 0, 0 },
|
||||
|
|
@ -205,6 +208,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_POSITION_X, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ANKER_MOUSE_KBD,
|
||||
.features = LITEST_KEYS | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ static struct input_id input_id = {
|
|||
.product = 0x21a,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -75,13 +76,16 @@ static int events[] = {
|
|||
EV_KEY, BTN_TOOL_TRIPLETAP,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1215, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 588, 0, 0, 0 },
|
||||
{ ABS_PRESSURE, 0, 300, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Apple Touchpad]\n"
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x273,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_ESC,
|
||||
EV_KEY, KEY_1,
|
||||
|
|
@ -216,6 +217,7 @@ static int events[] = {
|
|||
EV_LED, LED_KANA,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_APPLE_KEYBOARD,
|
||||
.features = LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ static struct input_id input_id = {
|
|||
.product = 0x30d,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -70,7 +71,9 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_MT_SLOT, 0, 15, 0, 0, 0 },
|
||||
{ ABS_MT_TOUCH_MAJOR, 0, 1020, 0, 0, 0 },
|
||||
|
|
@ -81,6 +84,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MAGICMOUSE,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ static struct input_id input_id = {
|
|||
.product = 0x181a,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_X,
|
||||
EV_REL, REL_Y,
|
||||
|
|
@ -306,11 +307,14 @@ static int events[] = {
|
|||
EV_LED, LED_KANA,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_VOLUME, 0, 668, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_GLADIUS,
|
||||
.features = LITEST_RELATIVE | LITEST_WHEEL | LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ static struct input_id input_id = {
|
|||
.product = 0x0,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -104,7 +105,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 960, 0, 0, 10 },
|
||||
{ ABS_Y, 0, 540, 0, 0, 10 },
|
||||
|
|
@ -120,6 +123,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_DISTANCE, 0, 1, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ATMEL_HOVER,
|
||||
.features = LITEST_TOUCHPAD | LITEST_BUTTON | LITEST_CLICKPAD | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, -4824, 4824, 0, 0, 0 },
|
||||
{ ABS_Y, -172, 4290, 0, 0, 0 },
|
||||
|
|
@ -96,6 +97,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -103,6 +105,7 @@ static struct input_id input_id = {
|
|||
.product = 0x249,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -114,6 +117,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_BCM5974,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD |
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1500, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 2500, 0, 0, 0 },
|
||||
|
|
@ -57,6 +58,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x11,
|
||||
|
|
@ -64,11 +66,13 @@ static struct input_id input_id = {
|
|||
.product = 0x33,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_CALIBRATED_TOUCHSCREEN,
|
||||
.features = LITEST_TOUCH|LITEST_PRECALIBRATED,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0xcd5,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -48,6 +49,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_CYBORG_RAT,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_MT_SLOT, 0, 4, 0, 0, 0 },
|
||||
{ ABS_X, 0, 32767, 0, 0, 55 },
|
||||
|
|
@ -61,6 +62,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -69,12 +71,14 @@ static struct input_id input_id = {
|
|||
.version = 0x111,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
EV_MSC, MSC_TIMESTAMP,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_DELL_CANVAS_TOTEM_TOUCH,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_MT_SLOT, 0, 4, 0, 0, 0 },
|
||||
{ ABS_MT_TOUCH_MAJOR, 0, 32767, 0, 0, 10 },
|
||||
|
|
@ -92,6 +93,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -100,12 +102,14 @@ static struct input_id input_id = {
|
|||
.version = 0x111,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_MSC, MSC_TIMESTAMP,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_DELL_CANVAS_TOTEM,
|
||||
.features = LITEST_TOTEM | LITEST_TABLET,
|
||||
|
|
|
|||
|
|
@ -106,12 +106,14 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 18176, 0, 0, 62 },
|
||||
{ ABS_Y, 0, 10240, 0, 0, 62 },
|
||||
{ ABS_PRESSURE, 0, 4096, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x18,
|
||||
|
|
@ -125,6 +127,7 @@ static struct input_id input_id = {
|
|||
* The one in the issue isn't the exact same model, but only the pid and x/y
|
||||
* axis max differs differs.
|
||||
*/
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -133,6 +136,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ELAN_TABLET,
|
||||
.features = LITEST_TABLET,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ static struct input_id input_id = {
|
|||
.product = 0xe,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -85,7 +86,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1280, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 704, 0, 0, 0 },
|
||||
|
|
@ -97,6 +100,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_ELANTECH_TOUCHPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ static struct input_id input_id = {
|
|||
.product = 0x0456,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -43,6 +44,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL_HI_RES,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_FORMAT_STRING,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ static struct input_id input_id = {
|
|||
.product = 0x4567,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -98,7 +99,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1224, 0, 0, 12 },
|
||||
{ ABS_Y, 0, 756, 0, 0, 12 },
|
||||
|
|
@ -111,6 +114,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TOOL_TYPE, 0, 2, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_GENERIC_PRESSUREPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -47,11 +47,13 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 10000, 20000, 0, 0, 10 },
|
||||
{ ABS_Y, -2000, 2000, 0, 0, 9 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x01,
|
||||
|
|
@ -59,11 +61,13 @@ static struct input_id input_id = {
|
|||
.product = 0x03,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_GENERIC_SINGLETOUCH,
|
||||
.features = LITEST_SINGLE_TOUCH,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x1,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_SW, SW_LID,
|
||||
EV_SW, SW_TABLET_MODE,
|
||||
|
|
@ -41,6 +42,7 @@ static int events[] = {
|
|||
EV_KEY, KEY_POWER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest gpio quirk]\n"
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x000,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_HELP,
|
||||
EV_KEY, KEY_SETUP,
|
||||
|
|
@ -46,6 +47,7 @@ static int events[] = {
|
|||
EV_SW, SW_DOCK,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_HP_WMI_HOTKEYS,
|
||||
.features = LITEST_SWITCH,
|
||||
|
|
|
|||
|
|
@ -73,12 +73,14 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 40000, 0, 0, 157 },
|
||||
{ ABS_Y, 0, 25000, 0, 0, 157 },
|
||||
{ ABS_PRESSURE, 0, 2047, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -87,6 +89,7 @@ static struct input_id input_id = {
|
|||
.product = 0x6e,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOUCH,
|
||||
|
|
@ -95,6 +98,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_HUION_TABLET,
|
||||
.features = LITEST_TABLET | LITEST_HOVER | LITEST_FORCED_PROXOUT,
|
||||
|
|
|
|||
|
|
@ -39,12 +39,14 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -53,12 +55,16 @@ static struct input_id input_id = {
|
|||
.product = 0x006d,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_REL, REL_WHEEL,
|
||||
EV_REL, REL_WHEEL_HI_RES,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
/* clang-format on */
|
||||
|
||||
/* Device from https://gitlab.freedesktop.org/libinput/libinput/-/issues/600 */
|
||||
TEST_DEVICE(LITEST_HUION_Q620M_DIAL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x6019,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -41,6 +42,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_IGNORED_MOUSE,
|
||||
.features = LITEST_IGNORED | LITEST_BUTTON | LITEST_RELATIVE,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x1,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_X,
|
||||
EV_REL, REL_Y,
|
||||
|
|
@ -197,6 +198,7 @@ static int events[] = {
|
|||
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Quirked Keyboard enable buttons]\n"
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ static struct input_id input_id = {
|
|||
.product = 0x11b,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_HWHEEL,
|
||||
EV_KEY, KEY_ESC,
|
||||
|
|
@ -299,7 +300,9 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_VOLUME, 0, 572, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 255, 0, 0, 0 },
|
||||
|
|
@ -331,6 +334,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ 0x3f, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_KEYBOARD_BLACKWIDOW,
|
||||
.features = LITEST_KEYS | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ static struct input_id input_id = {
|
|||
.product = 0x220,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_ESC,
|
||||
EV_KEY, KEY_1,
|
||||
|
|
@ -206,6 +207,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_KEYBOARD_BLADE_STEALTH_VIDEOSWITCH,
|
||||
.features = LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ static struct input_id input_id = {
|
|||
.product = 0x220,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_HWHEEL,
|
||||
EV_KEY, BTN_0,
|
||||
|
|
@ -297,7 +298,9 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_VOLUME, 0, 572, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 255, 0, 0, 0 },
|
||||
|
|
@ -329,6 +332,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ 0x3f, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_KEYBOARD_BLADE_STEALTH,
|
||||
.features = LITEST_KEYS | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x1,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_ESC,
|
||||
EV_KEY, KEY_1,
|
||||
|
|
@ -190,6 +191,7 @@ static int events[] = {
|
|||
EV_LED, LED_SCROLLL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_KEYBOARD,
|
||||
.features = LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x3109,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -43,6 +44,7 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* Note: device is not tagged with LITEST_WHEEL to avoid running the
|
||||
* "standard" wheel tests. Device has a custom wheel
|
||||
|
|
|
|||
|
|
@ -33,10 +33,12 @@ static struct input_id input_id = {
|
|||
.product = 0x5,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_SW, SW_LID,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Surface Lid]\n"
|
||||
|
|
|
|||
|
|
@ -32,10 +32,12 @@ static struct input_id input_id = {
|
|||
.product = 0x5,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_SW, SW_LID,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Lid Switch]\n"
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ static struct input_id input_id = {
|
|||
.product = 0x30f,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_MUTE,
|
||||
EV_KEY, KEY_VOLUMEDOWN,
|
||||
|
|
@ -79,6 +80,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_KEYBOARD_LOGITECH_MEDIA_KEYBOARD_ELITE,
|
||||
.features = LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0xc408,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -42,6 +43,7 @@ static int events[] = {
|
|||
EV_REL, REL_Y,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_LOGITECH_TRACKBALL,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_TRACKBALL,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, -2909, 3167, 4, 0, 46 },
|
||||
{ ABS_Y, -2456, 2565, 4, 0, 45 },
|
||||
|
|
@ -86,6 +87,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x5,
|
||||
|
|
@ -93,6 +95,7 @@ static struct input_id input_id = {
|
|||
.product = 0x30e,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -104,6 +107,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MAGIC_TRACKPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD |
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x1,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -44,6 +45,7 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL_HI_RES,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_LOW_DPI,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x2e22,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_X,
|
||||
EV_REL, REL_Y,
|
||||
|
|
@ -174,7 +175,9 @@ static int events[] = {
|
|||
EV_KEY, KEY_BRIGHTNESS_MAX,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_VOLUME, 0, 572, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
|
|
@ -183,6 +186,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC + 3, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_ROCCAT,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL | LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -30,11 +30,13 @@ static struct input_id input_id = {
|
|||
.product = 0x2,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_WHEEL,
|
||||
EV_REL, REL_WHEEL_HI_RES,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Virtual Mouse is virtual]\n"
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x5678,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -41,6 +42,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_WHEEL_CLICK_ANGLE,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x5678,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -41,6 +42,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_WHEEL_CLICK_COUNT,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x6019,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -42,6 +43,7 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE_WHEEL_TILT,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x6019,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -42,6 +43,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL_HI_RES,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MOUSE,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x0800,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -45,6 +46,7 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MS_NANO_TRANSCEIVER_MOUSE,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL | LITEST_NO_DEBOUNCE,
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1022, 0, 0, 12 },
|
||||
{ ABS_Y, 0, 487, 0, 0, 12 },
|
||||
|
|
@ -85,6 +86,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ 62, -127, 127, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -92,6 +94,7 @@ static struct input_id input_id = {
|
|||
.product = 0x7dc,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_X,
|
||||
EV_REL, REL_Y,
|
||||
|
|
@ -369,6 +372,7 @@ static int events[] = {
|
|||
EV_LED, LED_SCROLLL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MS_SURFACE_COVER,
|
||||
.features = LITEST_KEYS | LITEST_ABSOLUTE | LITEST_RELATIVE | LITEST_FAKE_MT | LITEST_BUTTON | LITEST_WHEEL,
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1500, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 2500, 0, 0, 0 },
|
||||
|
|
@ -63,6 +64,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x1,
|
||||
|
|
@ -70,11 +72,13 @@ static struct input_id input_id = {
|
|||
.product = 0x26,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_NEXUS4_TOUCH_SCREEN,
|
||||
.features = LITEST_TOUCH|LITEST_ELLIPSE,
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_up = protocolA_up,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 32767, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 32767, 0, 0, 0 },
|
||||
|
|
@ -188,6 +189,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_PRESSURE, 0, 1, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x18,
|
||||
|
|
@ -195,11 +197,13 @@ static struct input_id input_id = {
|
|||
.product = 0x20,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_PROTOCOL_A_SCREEN,
|
||||
.features = LITEST_PROTOCOL_A|LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -66,11 +66,13 @@ static struct litest_device_interface interface = {
|
|||
.touch_up = touch_up,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 32767, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 32767, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x03,
|
||||
|
|
@ -78,6 +80,7 @@ static struct input_id input_id = {
|
|||
.product = 0x01,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -85,6 +88,7 @@ static int events[] = {
|
|||
EV_REL, REL_WHEEL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_QEMU_TABLET,
|
||||
.features = LITEST_WHEEL | LITEST_BUTTON | LITEST_ABSOLUTE,
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ static struct input_id input_id = {
|
|||
.product = 0x00,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_UP,
|
||||
EV_KEY, KEY_DOWN,
|
||||
|
|
@ -85,6 +86,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SONY_VAIO_KEYS,
|
||||
.features = LITEST_KEYS,
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ static struct input_id input_id = {
|
|||
.product = 0x7,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -89,7 +90,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_SEMI_MT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1472, 5472, 0, 0, 60 },
|
||||
{ ABS_Y, 1408, 4498, 0, 0, 85 },
|
||||
|
|
@ -101,6 +104,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SYNAPTICS_HOVER_SEMI_MT,
|
||||
.features = LITEST_TOUCHPAD | LITEST_SEMI_MT | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ static struct input_id input_id = {
|
|||
.product = 0x76ad,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -68,7 +69,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1216, 0, 0, 12 },
|
||||
{ ABS_Y, 0, 680, 0, 0, 12 },
|
||||
|
|
@ -78,6 +81,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Synaptics i2c Touchpad]\n"
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ static struct input_id input_id = {
|
|||
.product = 0x311c,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -70,7 +71,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 4654, 0, 0, 31 },
|
||||
{ ABS_Y, 0, 2730, 0, 0, 31 },
|
||||
|
|
@ -81,6 +84,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Dell XPS 15 9500 Touchpad]\n"
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ static struct input_id input_id = {
|
|||
.product = 0xce37,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -98,7 +99,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1224, 0, 0, 12 },
|
||||
{ ABS_Y, 0, 756, 0, 0, 12 },
|
||||
|
|
@ -111,6 +114,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TOOL_TYPE, 0, 2, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SYNAPTICS_PRESSUREPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ static struct input_id input_id = {
|
|||
.product = 0x0,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -94,7 +95,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1940, 0, 0, 20 },
|
||||
{ ABS_Y, 0, 1062, 0, 0, 20 },
|
||||
|
|
@ -110,6 +113,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SYNAPTICS_RMI4,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_Y, 1408, 4448, 0, 0, 129 },
|
||||
|
|
@ -73,6 +74,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x11,
|
||||
|
|
@ -80,6 +82,7 @@ static struct input_id input_id = {
|
|||
.product = 0x7,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -87,6 +90,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_TOUCH,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SYNAPTICS_TOUCHPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_BUTTON | LITEST_SINGLE_TOUCH,
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ static struct input_id input_id = {
|
|||
.product = 0x7,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -89,7 +90,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_TOPBUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1024, 5112, 0, 0, 42 },
|
||||
{ ABS_Y, 2024, 4832, 0, 0, 42 },
|
||||
|
|
@ -102,6 +105,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SYNAPTICS_TOPBUTTONPAD,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON | LITEST_TOPBUTTONPAD,
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ static struct input_id input_id = {
|
|||
.product = 0x7,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -91,7 +92,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1266, 5676, 0, 0, 45 },
|
||||
{ ABS_Y, 1096, 4758, 0, 0, 68 },
|
||||
|
|
@ -104,6 +107,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Synaptics X1 Carbon 3rd Touchpad]\n"
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ static struct input_id input_id = {
|
|||
.product = 0x11,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -88,7 +89,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_Y, 1408, 4448, 0, 0, 129 },
|
||||
|
|
@ -101,6 +104,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_SYNAPTICS_CLICKPAD_X220,
|
||||
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON,
|
||||
|
|
|
|||
|
|
@ -39,12 +39,14 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -52,6 +54,7 @@ static struct input_id input_id = {
|
|||
.product = 0x678,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -64,6 +67,7 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL_HI_RES,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_TABLET_DOUBLEDIAL_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_DIAL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x456,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
/* buttons are needed - the unreliable quirk removes SW_TABLET_MODE
|
||||
* so we'd end up with a device with no seat caps and that won't get
|
||||
|
|
@ -41,6 +42,7 @@ static int events[] = {
|
|||
EV_SW, SW_TABLET_MODE,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest unreliable tablet mode switch]\n"
|
||||
|
|
|
|||
|
|
@ -39,12 +39,14 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -52,6 +54,7 @@ static struct input_id input_id = {
|
|||
.product = 0x456,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -61,6 +64,7 @@ static int events[] = {
|
|||
EV_REL, REL_DIAL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_TABLET_REL_DIAL_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_DIAL,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0x5054,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_MUTE,
|
||||
EV_KEY, KEY_VOLUMEUP,
|
||||
|
|
@ -69,6 +70,7 @@ static int events[] = {
|
|||
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_THINKPAD_EXTRABUTTONS,
|
||||
.features = LITEST_KEYS | LITEST_SWITCH,
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 50000, 0, 0, 100 },
|
||||
{ ABS_Y, 0, 33000, 0, 0, 100 },
|
||||
|
|
@ -69,6 +70,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x1,
|
||||
|
|
@ -76,11 +78,13 @@ static struct input_id input_id = {
|
|||
.product = 0x25,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_GENERIC_MULTITOUCH_SCREEN,
|
||||
.features = LITEST_TOUCH|LITEST_ELLIPSE,
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ static struct input_id input_id = {
|
|||
.product = 0x7,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
|
|
@ -91,7 +92,9 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1266, 5676, 0, 0, 45 },
|
||||
{ ABS_Y, 1096, 4758, 0, 0, 68 },
|
||||
|
|
@ -104,6 +107,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest TouchpadPalmPressure Zero]\n"
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1500, 10, 0, 0 },
|
||||
{ ABS_Y, 0, 2500, 12, 0, 0 },
|
||||
|
|
@ -60,6 +61,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x1,
|
||||
|
|
@ -67,11 +69,13 @@ static struct input_id input_id = {
|
|||
.product = 0x25,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_MULTITOUCH_FUZZ_SCREEN,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1000, 2500, 0, 0, 10 },
|
||||
{ ABS_Y, 2000, 4500, 0, 0, 10 },
|
||||
|
|
@ -60,6 +61,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x1,
|
||||
|
|
@ -67,11 +69,13 @@ static struct input_id input_id = {
|
|||
.product = 0x25,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_TOUCHSCREEN_INVALID_RANGE,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1000, 2500, 0, 0, 10 },
|
||||
{ ABS_Y, 2000, 4500, 0, 0, 10 },
|
||||
|
|
@ -63,6 +64,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x1,
|
||||
|
|
@ -70,11 +72,13 @@ static struct input_id input_id = {
|
|||
.product = 0x25,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_TOUCHSCREEN_MT_TOOL_TYPE,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static struct input_id input_id = {
|
|||
.product = 0xa,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -42,6 +43,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTING_STICK,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_TRACKPOINT,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_POINTINGSTICK,
|
||||
|
|
|
|||
|
|
@ -72,12 +72,14 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 32767, 0, 0, 235 },
|
||||
{ ABS_Y, 0, 32767, 0, 0, 323 },
|
||||
{ ABS_PRESSURE, 0, 1023, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -86,6 +88,7 @@ static struct input_id input_id = {
|
|||
.product = 0x6e,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
EV_KEY, BTN_STYLUS,
|
||||
|
|
@ -93,6 +96,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SCAN,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_UCLOGIC_TABLET,
|
||||
.features = LITEST_TABLET | LITEST_HOVER | LITEST_FORCED_PROXOUT,
|
||||
|
|
|
|||
|
|
@ -66,11 +66,13 @@ static struct litest_device_interface interface = {
|
|||
.touch_up = touch_up,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 32767, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 32767, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x03,
|
||||
|
|
@ -78,6 +80,7 @@ static struct input_id input_id = {
|
|||
.product = 0x03,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -99,6 +102,7 @@ static int events[] = {
|
|||
EV_REL, REL_HWHEEL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_VMWARE_VIRTMOUSE,
|
||||
.features = LITEST_WHEEL | LITEST_BUTTON | LITEST_ABSOLUTE | LITEST_NO_DEBOUNCE,
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 14720, 4, 0, 100 },
|
||||
{ ABS_Y, 0, 9200, 4, 0, 100 },
|
||||
|
|
@ -84,6 +85,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_DISTANCE, 0, 31, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -92,6 +94,7 @@ static struct input_id input_id = {
|
|||
.version = 0x100,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -101,6 +104,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_BAMBOO_16FG_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 15360, 0, 0, 128 },
|
||||
{ ABS_Y, 0, 10240, 0, 0, 128 },
|
||||
|
|
@ -62,6 +63,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -70,6 +72,7 @@ static struct input_id input_id = {
|
|||
.version = 0x110,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
EV_KEY, BTN_TOUCH,
|
||||
|
|
@ -77,6 +80,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_BAMBOO_2FG_FINGER,
|
||||
.features = LITEST_TOUCHPAD,
|
||||
|
|
|
|||
|
|
@ -39,11 +39,13 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -52,6 +54,7 @@ static struct input_id input_id = {
|
|||
.version = 0x100,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_LEFT,
|
||||
EV_KEY, BTN_RIGHT,
|
||||
|
|
@ -60,6 +63,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_STYLUS,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_BAMBOO_2FG_PAD,
|
||||
.features = LITEST_TABLET_PAD,
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 14720, 4, 0, 100 },
|
||||
{ ABS_Y, 0, 9200, 4, 0, 100 },
|
||||
|
|
@ -84,6 +85,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_DISTANCE, 0, 31, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -92,6 +94,7 @@ static struct input_id input_id = {
|
|||
.version = 0x100,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -101,6 +104,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_BAMBOO_2FG_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -101,12 +101,14 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 29476, 4, 0, 100 },
|
||||
{ ABS_Y, 0, 16624, 4, 0, 100 },
|
||||
{ ABS_PRESSURE, 0, 1023, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -115,6 +117,7 @@ static struct input_id input_id = {
|
|||
.version = 0x111,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -124,6 +127,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CALIBRATED_TABLET_PEN,
|
||||
.features = LITEST_TABLET|LITEST_PRECALIBRATED,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 53020, 4, 0, 200 },
|
||||
{ ABS_Y, 0, 33440, 4, 0, 200 },
|
||||
|
|
@ -106,6 +107,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -114,6 +116,7 @@ static struct input_id input_id = {
|
|||
.version = 0x113,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -137,6 +140,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_12WX_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT | LITEST_DIRECT | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 2937, 0, 0, 10 },
|
||||
{ ABS_Y, 0, 1652, 0, 0, 10 },
|
||||
|
|
@ -67,6 +68,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -75,11 +77,13 @@ static struct input_id input_id = {
|
|||
.version = 0x110,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_13HDT_FINGER,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ static struct litest_device_interface interface = {
|
|||
.pad_ring_change_events = ring_change,
|
||||
.pad_ring_end_events = ring_end,
|
||||
};
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
|
|
@ -68,6 +69,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -76,6 +78,7 @@ static struct input_id input_id = {
|
|||
.version = 0x110,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -89,6 +92,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_STYLUS,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_13HDT_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_RING,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 400, 59152, 4, 0, 200 },
|
||||
{ ABS_Y, 400, 33448, 4, 0, 200 },
|
||||
|
|
@ -105,6 +106,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -113,6 +115,7 @@ static struct input_id input_id = {
|
|||
.version = 0x110,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -126,6 +129,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_13HDT_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT | LITEST_DIRECT | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 400, 104080, 4, 0, 200 },
|
||||
{ ABS_Y, 400, 65200, 4, 0, 200 },
|
||||
|
|
@ -105,6 +106,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -113,6 +115,7 @@ static struct input_id input_id = {
|
|||
.version = 0x113,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -126,6 +129,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_24HD_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT | LITEST_DIRECT | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -73,6 +73,8 @@ static struct litest_device_interface interface = {
|
|||
.pad_ring_end_events = ring_end,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
|
|
@ -81,6 +83,8 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -89,6 +93,7 @@ static struct input_id input_id = {
|
|||
.version = 0x110,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_PROG1,
|
||||
EV_KEY, KEY_PROG2,
|
||||
|
|
@ -112,6 +117,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_STYLUS,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_24HDT_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_RING,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 13824, 0, 0, 40 },
|
||||
{ ABS_Y, 0, 7776, 0, 0, 40 },
|
||||
|
|
@ -66,6 +67,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -74,11 +76,13 @@ static struct input_id input_id = {
|
|||
.version = 0xb,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_PRO16_FINGER,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -38,12 +38,14 @@ static struct litest_device_interface interface = {
|
|||
.touch_down_events = down,
|
||||
.touch_move_events = move,
|
||||
};
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -52,6 +54,7 @@ static struct input_id input_id = {
|
|||
.version = 0xb,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_STYLUS,
|
||||
EV_KEY, KEY_BUTTONCONFIG,
|
||||
|
|
@ -59,6 +62,7 @@ static int events[] = {
|
|||
EV_KEY, KEY_ONSCREEN_KEYBOARD,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_PRO16_PAD,
|
||||
.features = LITEST_TABLET_PAD,
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 69920, 0, 0, 200 },
|
||||
{ ABS_Y, 0, 39980, 0, 0, 200 },
|
||||
|
|
@ -111,6 +112,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -119,6 +121,7 @@ static struct input_id input_id = {
|
|||
.version = 0xb,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -133,6 +136,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_CINTIQ_PRO16_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT | LITEST_DIRECT | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ static struct litest_device_interface interface = {
|
|||
.pad_ring_end_events = ring_end,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
|
|
@ -69,6 +70,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -76,6 +78,7 @@ static struct input_id input_id = {
|
|||
.product = 0x331,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -99,6 +102,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_STYLUS,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_EKR,
|
||||
.features = LITEST_TABLET_PAD | LITEST_RING,
|
||||
|
|
|
|||
|
|
@ -74,12 +74,14 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 21696, 4, 0, 100 },
|
||||
{ ABS_Y, 0, 13560, 4, 0, 100 },
|
||||
{ ABS_PRESSURE, 0, 2047, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x18,
|
||||
|
|
@ -88,6 +90,7 @@ static struct input_id input_id = {
|
|||
.version = 0x100,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -98,6 +101,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_HID4800_PEN,
|
||||
.features = LITEST_TABLET | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ static struct litest_device_interface interface = {
|
|||
.pad_strip_end_events = strip_end,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
|
|
@ -69,6 +70,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -76,6 +78,7 @@ static struct input_id input_id = {
|
|||
.product = 0xb7,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -84,6 +87,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_STYLUS,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_INTUOS3_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_STRIP,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 4096, 0, 0, 18 },
|
||||
{ ABS_Y, 0, 4096, 0, 0, 29 },
|
||||
|
|
@ -85,6 +86,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -92,6 +94,7 @@ static struct input_id input_id = {
|
|||
.product = 0x27,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_FINGER,
|
||||
EV_KEY, BTN_TOOL_QUINTTAP,
|
||||
|
|
@ -102,6 +105,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_INTUOS5_FINGER,
|
||||
.features = LITEST_TOUCHPAD,
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ static struct litest_device_interface interface = {
|
|||
.pad_ring_end_events = ring_end,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 1, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 1, 0, 0, 0 },
|
||||
|
|
@ -69,6 +70,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 10 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -76,6 +78,7 @@ static struct input_id input_id = {
|
|||
.product = 0x27,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -89,6 +92,7 @@ static int events[] = {
|
|||
EV_KEY, BTN_STYLUS,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_INTUOS5_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_RING,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 44704, 4, 0, 200 },
|
||||
{ ABS_Y, 0, 27940, 4, 0, 200 },
|
||||
|
|
@ -105,6 +106,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -112,6 +114,7 @@ static struct input_id input_id = {
|
|||
.product = 0x27,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -142,6 +145,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_POINTER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_INTUOS5_PEN,
|
||||
.features = LITEST_TABLET | LITEST_DISTANCE | LITEST_TOOL_SERIAL | LITEST_TILT | LITEST_TOOL_MOUSE | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 59674, 0, 0, 100 },
|
||||
{ ABS_Y, 0, 33566, 0, 0, 100 },
|
||||
|
|
@ -81,6 +82,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_PRESSURE, 0, 4096, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -88,6 +90,7 @@ static struct input_id input_id = {
|
|||
.product = 0x4200,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -98,6 +101,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_ISDV4_4200_PEN,
|
||||
.features = LITEST_TABLET|LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 30931, 0, 0, 100 },
|
||||
{ ABS_Y, 0, 17399, 0, 0, 100 },
|
||||
|
|
@ -136,6 +137,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_PRESSURE, 0, 4095, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -143,6 +145,7 @@ static struct input_id input_id = {
|
|||
.product = 0x524c,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -152,6 +155,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_ISDV4_524C_PEN,
|
||||
.features = LITEST_TABLET|LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ static struct litest_device_interface interface = {
|
|||
.touch_move_events = move,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 2776, 0, 0, 10 },
|
||||
{ ABS_Y, 0, 1569, 0, 0, 9 },
|
||||
|
|
@ -63,6 +64,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -70,11 +72,13 @@ static struct input_id input_id = {
|
|||
.product = 0xe6,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOUCH,
|
||||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_ISDV4_E6_FINGER,
|
||||
.features = LITEST_TOUCH,
|
||||
|
|
|
|||
|
|
@ -69,12 +69,14 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 27760, 4, 0, 100 },
|
||||
{ ABS_Y, 0, 15694, 4, 0, 100 },
|
||||
{ ABS_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -82,6 +84,7 @@ static struct input_id input_id = {
|
|||
.product = 0xe6,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_TOOL_PEN,
|
||||
EV_KEY, BTN_TOOL_RUBBER,
|
||||
|
|
@ -91,6 +94,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_DIRECT,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_ISDV4_E6_PEN,
|
||||
.features = LITEST_TABLET | LITEST_HOVER,
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ static struct litest_device_interface interface = {
|
|||
.pad_ring_change_events = ring_change,
|
||||
.pad_ring_end_events = ring_end,
|
||||
};
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, -2048, 2048, 0, 0, 0 },
|
||||
{ ABS_Y, -2048, 2048, 0, 0, 0 },
|
||||
|
|
@ -69,6 +70,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_MISC, 0, 0, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -77,6 +79,7 @@ static struct input_id input_id = {
|
|||
.version = 0x110,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, BTN_0,
|
||||
EV_KEY, BTN_1,
|
||||
|
|
@ -95,6 +98,7 @@ static int events[] = {
|
|||
INPUT_PROP_MAX, INPUT_PROP_ACCELEROMETER,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WACOM_MOBILESTUDIO_PRO_16_PAD,
|
||||
.features = LITEST_TABLET_PAD | LITEST_RING,
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ static struct litest_device_interface interface = {
|
|||
.get_axis_default = get_axis_default,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 0, 32000, 0, 0, 0 },
|
||||
{ ABS_Y, 0, 32000, 0, 0, 0 },
|
||||
|
|
@ -88,6 +89,7 @@ static struct input_absinfo absinfo[] = {
|
|||
{ ABS_TILT_Y, -127, 127, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static struct input_id input_id = {
|
||||
.bustype = 0x3,
|
||||
|
|
@ -95,6 +97,7 @@ static struct input_id input_id = {
|
|||
.product = 0x509,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_KEY, KEY_ESC,
|
||||
EV_KEY, KEY_1,
|
||||
|
|
@ -219,6 +222,7 @@ static int events[] = {
|
|||
EV_MSC, MSC_SERIAL,
|
||||
-1, -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const char quirk_file[] =
|
||||
"[litest Waltop Tablet]\n"
|
||||
|
|
|
|||
|
|
@ -32,10 +32,12 @@ static struct input_id input_id = {
|
|||
.product = 0x2,
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static int events[] = {
|
||||
EV_REL, REL_WHEEL,
|
||||
-1 , -1,
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
TEST_DEVICE(LITEST_WHEEL_ONLY,
|
||||
.features = LITEST_WHEEL,
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue