diff --git a/tools/Makefile.am b/tools/Makefile.am index 68e60cbb..8f72db99 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -39,3 +39,5 @@ event_gui_LDADD = ../src/libinput.la libshared.la $(CAIRO_LIBS) $(GTK_LIBS) $(LI event_gui_CFLAGS = $(CAIRO_CFLAGS) $(GTK_CFLAGS) $(LIBUDEV_CFLAGS) event_gui_LDFLAGS = -no-install endif + +EXTRA_DIST = make-ptraccel-graphs.sh diff --git a/tools/make-ptraccel-graphs.sh b/tools/make-ptraccel-graphs.sh new file mode 100755 index 00000000..901baf9c --- /dev/null +++ b/tools/make-ptraccel-graphs.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +tool=`dirname $0`/ptraccel-debug +gnuplot=/usr/bin/gnuplot + +outfile="ptraccel-linear" +for speed in -1 -0.75 -0.5 -0.25 0 0.5 1; do + $tool --mode=accel --dpi=1000 --filter=linear --speed=$speed > $outfile-$speed.gnuplot +done +$gnuplot < $outfile-$dpi.gnuplot +done + +$gnuplot < $outfile-mouse.gnuplot +$tool --mode=accel --dpi=1000 --filter=touchpad > $outfile-touchpad.gnuplot +$gnuplot < $outfile-mouse.gnuplot +for constaccel in 1 2 3; do + dpi=$((1000/$constaccel)) + $tool --mode=accel --dpi=$dpi --filter=trackpoint > $outfile-trackpoint-$constaccel.gnuplot +done +$gnuplot <