mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
doc: update the touchpad pointer acceleration svg
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
ff31427e80
commit
7e5062f632
3 changed files with 391 additions and 1615 deletions
|
|
@ -96,10 +96,11 @@ applied sooner and with a stronger acceleration factor.
|
|||
|
||||
@section ptraccel-touchpad Pointer acceleration on touchpads
|
||||
|
||||
Touchpad pointer acceleration uses the @ref ptraccel-linear profile, with a
|
||||
constant deceleration factor applied. The user expectation of how much a
|
||||
pointer should move in response to finger movement is different to that of a
|
||||
mouse device, hence the constant deceleration factor.
|
||||
Touchpad pointer acceleration uses the same approach as the @ref
|
||||
ptraccel-linear profile, with a constant deceleration factor applied. The
|
||||
user expectation of how much a pointer should move in response to finger
|
||||
movement is different to that of a mouse device, hence the constant
|
||||
deceleration factor.
|
||||
|
||||
@image html ptraccel-touchpad.svg "Pointer acceleration curve for touchpads"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 42 KiB |
|
|
@ -44,18 +44,20 @@ plot "$outfile-200.gnuplot" using 1:2 title "200dpi", \
|
|||
EOF
|
||||
|
||||
outfile="ptraccel-touchpad"
|
||||
$tool --mode=accel --dpi=1000 --filter=linear > $outfile-mouse.gnuplot
|
||||
$tool --mode=accel --dpi=1000 --filter=touchpad > $outfile-touchpad.gnuplot
|
||||
$gnuplot <<EOF
|
||||
set terminal svg enhanced background rgb 'white'
|
||||
set output "$outfile.svg"
|
||||
set xlabel "speed in units/us"
|
||||
set xlabel "speed in mm/s"
|
||||
set ylabel "accel factor"
|
||||
set style data lines
|
||||
set yrange [0:3]
|
||||
set xrange [0:0.003]
|
||||
plot "$outfile-mouse.gnuplot" using 1:2 title "linear (mouse)", \
|
||||
"$outfile-touchpad.gnuplot" using 1:2 title "touchpad"
|
||||
set xrange [0:400]
|
||||
plot \
|
||||
$(
|
||||
for speed in -1 -0.5 -0.2 0 0.2 0.5 1; do
|
||||
$tool --mode=accel --dpi=1000 --filter=touchpad --speed=$speed> $outfile-$speed.gnuplot
|
||||
echo "\"$outfile-$speed.gnuplot\" using 1:2 title '$speed', \\"
|
||||
done
|
||||
)
|
||||
EOF
|
||||
|
||||
outfile="ptraccel-trackpoint"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue