tools: display the discrete axis steps too
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 28 Nov 2018 02:16:51 +0000 (12:16 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 Mar 2019 05:47:27 +0000 (15:47 +1000)
commit1150a8442ffcba7a55c7a98e616e279eaff4fe4f
tree360b1754a4138f60f24b4d809ea983885539b6a9
parentd213804de84562a76b7de3e36e18f2f9327a1d03
tools: display the discrete axis steps too

Draw a second smaller scroll bar that moves with every discrete step. For that
to work, we have to accumulate the value from the normal scroll events until
we get the first discrete one, then move up.

The value per discrete event changes depending on the click wheel angle, so we
can't just use discrete on its own if we want the two scroll bars aligned.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-debug-events.c
tools/libinput-debug-gui.c