Peter Hutterer
9988f4242e
tools/measure-touchpad-pressure: require max > min for a range
...
Otherwise a resulting quirk will fail when parsed by libinput which
enforces this too.
Closes #1060
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1089 >
2024-12-10 10:00:39 +00:00
Peter Hutterer
15af1c0017
tools: change direct type check to isinstance
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1072 >
2024-10-29 13:27:35 +10:00
Peter Hutterer
1dbdef8fdb
Use python black for all pyhon file formatting
...
Let's enforce a consistent (and verifiable) style everywhere.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-28 21:02:45 +00:00
Peter Hutterer
101cbe16c3
tools: make the thumb threshold configurable while measuring pressure
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-03-30 14:45:19 +10:00
Peter Hutterer
ef5204fda7
tools: revamp the touchpad-pressure measuring tool
...
Let's hope this one is more obvious to use for users.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-03-30 14:44:47 +10:00
Peter Hutterer
27632555e1
tools: flake8 fixes for the various python files
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-09-11 12:02:58 +10:00
Peter Hutterer
34afe3ba1c
tools: improve the error messages for measure touch-size/touchpad-pressure
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-06-24 12:50:08 +10:00
Peter Hutterer
33afe9f875
tools: switch measure-touchpad-pressure to python-libevdev
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-04-01 04:33:11 +00:00
Peter Hutterer
27bf3fb2ab
tools: allow measuring single-touch ABS_PRESSURE
...
Fixes #173
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-06 00:24:06 +00:00
Peter Hutterer
a661d7b717
tools: handle a finger down at startup for measure pressure/touch-size
...
Fixes #117
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-08-29 22:17:33 +00:00
Peter Hutterer
6d8b10153c
tools: drop two unused imports
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-07-26 15:38:55 +10:00
Peter Hutterer
2caf557e10
tools: rely on the libinput and quirks tool to pick the right directories
...
Don't use a custom hack here, just make sure the tool ends up in the builddir
so it's picked up by the libinput main tool.
This means the PATH isn't set up correctly when called directly
(./builddir/libinput-measure-touchpad-pressure) but the workaround is to
always use the libinput tool - just as we expect from users.
To make it more obvious that we're not supposed to run this directly, rename
the source file to .py
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-07-09 11:28:41 +10:00