Hi This is the second version, that should address all the review comments that I did not miss. Orientation is now in degrees against the x-axis. The scaling of major / minor diameter sizes is now done similar to x and y position. I had a look at how android does the scaling of those values, there seem to be various possibilities, that can be configured per device[1]. This series only implements the most straight forward way to do it, but adds the information for a more complex calculation. My intention here was to avoid ABI breaks later, when this becomes necessary.
The first step of the series copies the axis_replacement from the tablet branch and provides alternative forms of touch down and touch move event generators. The last step adds the new functions and does the normalization/scaling and default value handling. Not yet done in this series: Adding some complaint messages about zero-resolution values in input_absinfo structures and similar. I.e. I ran over a device that claims to support from zero to zero MT_TRACKING ids. regards, Andreas [1] starting from line 3939: https://android.googlesource.com/platform/frameworks/base/+/jb-release/services/input/InputReader.cpp Andreas Pokorny (5): add axis_replacement from tablet branch litest: add a generic multitouch screen litest: add mako style touch screen without orientation litest: floating point comparison macros libinput: add orientation and size of touch point and pressure to the API src/evdev.c | 158 ++++++++++++++++++++++++++----- src/evdev.h | 37 ++++++++ src/libinput-private.h | 12 ++- src/libinput.c | 128 ++++++++++++++++++++++++- src/libinput.h | 194 ++++++++++++++++++++++++++++++++++++++ src/libinput.sym | 10 ++ test/Makefile.am | 2 + test/litest-nexus4-touch-screen.c | 98 +++++++++++++++++++ test/litest-selftest.c | 66 +++++++++++++ test/litest-touch-screen.c | 104 ++++++++++++++++++++ test/litest.c | 63 ++++++++++--- test/litest.h | 52 ++++++++++ test/touch.c | 94 ++++++++++++++++++ 13 files changed, 980 insertions(+), 38 deletions(-) create mode 100644 test/litest-nexus4-touch-screen.c create mode 100644 test/litest-touch-screen.c -- 2.1.4 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel