mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 14:40:26 +01:00
test: fix resolution on all devices
struct input_absinfo has the resolution as the 6th field, not as the 4th. This doesn't have any visible effect because uinput doesn't allow us to set the resolution yet. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4d1bc5ef5f
commit
8e20d8105b
3 changed files with 22 additions and 22 deletions
|
|
@ -66,15 +66,15 @@ static struct litest_device_interface interface = {
|
|||
};
|
||||
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1472, 5472, 75 },
|
||||
{ ABS_Y, 1408, 4448, 129 },
|
||||
{ ABS_PRESSURE, 0, 255, 0 },
|
||||
{ ABS_TOOL_WIDTH, 0, 15, 0 },
|
||||
{ ABS_MT_SLOT, 0, 1, 0 },
|
||||
{ ABS_MT_POSITION_X, 1472, 5472, 75 },
|
||||
{ ABS_MT_POSITION_Y, 1408, 4448, 129 },
|
||||
{ ABS_MT_TRACKING_ID, 0, 65535, 0 },
|
||||
{ ABS_MT_PRESSURE, 0, 255, 0 },
|
||||
{ ABS_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_Y, 1408, 4448, 0, 0, 129 },
|
||||
{ ABS_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 },
|
||||
{ ABS_MT_SLOT, 0, 1, 0, 0, 0 },
|
||||
{ ABS_MT_POSITION_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_MT_POSITION_Y, 1408, 4448, 0, 0, 129 },
|
||||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -65,10 +65,10 @@ static struct litest_device_interface interface = {
|
|||
};
|
||||
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1472, 5472, 75 },
|
||||
{ ABS_Y, 1408, 4448, 129 },
|
||||
{ ABS_PRESSURE, 0, 255, 0 },
|
||||
{ ABS_TOOL_WIDTH, 0, 15, 0 },
|
||||
{ ABS_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_Y, 1408, 4448, 0, 0, 129 },
|
||||
{ ABS_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 },
|
||||
{ .value = -1 },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -85,15 +85,15 @@ static int events[] = {
|
|||
};
|
||||
|
||||
static struct input_absinfo absinfo[] = {
|
||||
{ ABS_X, 1472, 5472, 75 },
|
||||
{ ABS_Y, 1408, 4448, 129 },
|
||||
{ ABS_PRESSURE, 0, 255, 0 },
|
||||
{ ABS_TOOL_WIDTH, 0, 15, 0 },
|
||||
{ ABS_MT_SLOT, 0, 1, 0 },
|
||||
{ ABS_MT_POSITION_X, 1472, 5472, 75 },
|
||||
{ ABS_MT_POSITION_Y, 1408, 4448, 129 },
|
||||
{ ABS_MT_TRACKING_ID, 0, 65535, 0 },
|
||||
{ ABS_MT_PRESSURE, 0, 255, 0 },
|
||||
{ ABS_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_Y, 1408, 4448, 0, 0, 129 },
|
||||
{ ABS_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 },
|
||||
{ ABS_MT_SLOT, 0, 1, 0, 0, 0 },
|
||||
{ ABS_MT_POSITION_X, 1472, 5472, 0, 0, 75 },
|
||||
{ ABS_MT_POSITION_Y, 1408, 4448, 0, 0, 129 },
|
||||
{ ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 },
|
||||
{ ABS_MT_PRESSURE, 0, 255, 0, 0, 0 },
|
||||
{ .value = -1 }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue