mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
tools/debug-gui: start the unaccelerated motion deltas in the screen center
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
de70661213
commit
c71fa06607
1 changed files with 2 additions and 0 deletions
|
|
@ -765,6 +765,8 @@ map_event_cb(GtkWidget *widget, GdkEvent *event, gpointer data)
|
|||
|
||||
w->x = w->width/2;
|
||||
w->y = w->height/2;
|
||||
w->deltas[0].x = w->x;
|
||||
w->deltas[0].y = w->y;
|
||||
|
||||
w->scroll.vx = w->width/2;
|
||||
w->scroll.vy = w->height/2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue