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:
Peter Hutterer 2021-03-10 14:48:53 +10:00
parent de70661213
commit c71fa06607

View file

@ -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;