test: give the generic MT touchscreen realistic ranges
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 17 Mar 2023 03:41:40 +0000 (13:41 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 17 Mar 2023 04:04:58 +0000 (14:04 +1000)
This way we can rely on physical coords on this screen being actually
meaningful. Not currently in use but future tests will use this touch
device as generic screen.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest-device-touch-screen.c

index 3cdbc2d487d70fdec1185f54e588f565bc26e139..95f6ec69625a7dd717406ee855a275f791f2d7fa 100644 (file)
@@ -57,11 +57,11 @@ static struct litest_device_interface interface = {
 };
 
 static struct input_absinfo absinfo[] = {
-       { ABS_X, 0, 1500, 0, 0, 0 },
-       { ABS_Y, 0, 2500, 0, 0, 0 },
+       { ABS_X, 0, 50000, 0, 0, 100 },
+       { ABS_Y, 0, 33000, 0, 0, 100 },
        { ABS_MT_SLOT, 0, 9, 0, 0, 0 },
-       { ABS_MT_POSITION_X, 0, 1500, 0, 0, 0 },
-       { ABS_MT_POSITION_Y, 0, 2500, 0, 0, 0 },
+       { ABS_MT_POSITION_X, 0, 50000, 0, 0, 100 },
+       { ABS_MT_POSITION_Y, 0, 33000, 0, 0, 100 },
        { ABS_MT_ORIENTATION, -256, 255, 0, 0, 0 },
        { ABS_MT_TOUCH_MAJOR, 0, 255, 1, 0, 0 },
        { ABS_MT_TOUCH_MINOR, 0, 255, 1, 0, 0 },