More realistic, there's no way you can get the x/y coordinates exactly the
same when moving the pen back into prox.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
{ -1, -1 }
};
struct tool_type_match *tt;
+ double x = 50, y = 50;
litest_drain_events(li);
continue;
litest_tablet_set_tool_type(dev, tt->code);
- litest_tablet_proximity_in(dev, 50, 50, axes);
+ litest_tablet_proximity_in(dev, x, y, axes);
libinput_dispatch(li);
event = libinput_get_event(li);
litest_tablet_proximity_out(dev);
litest_drain_events(li);
+
+ x++;
+ y++;
}
}
END_TEST