[PATCH 0/7] libinput: add touch point properties to libinput_event_touch

Andreas Pokorny andreas.pokorny at canonical.com
Wed Jun 10 07:09:10 PDT 2015


Hi, 
This is a series of patches to add further information about the touch points
to the libinput touch event. Further here means orientation and size of the
touch ellipse and the applied pressure. Since the support varies with each
device defaults are supplied if the information is missing. 

The whole series adds two simulated touch devices to litest one which provides
all the axes mentioned above and one which does not supply minor and orientation
values of the ellipse. And with that a few utility functions to emit axis
changes.

Orientation and pressure get normalized to [-1;1] and [0;1] respectively. I am
not entirely shure whether touch major/minor need transformation or scaling in
some sense based on the calibration matrix? In the current version those two are
just provided the way they were read from the device.

regards,
Andreas



Andreas Pokorny (7):
  litest: add a generic multitouch screen
  libinput: add orientation and size of touch point and pressure to the
    API
  evdev: move scale_axis to evdev.h header
  litest: float comparision
  evdev: Normalize orientation and pressure values
  litest: add mako style touch screen without orientation
  evdev: track which touch point properties are available

 src/evdev.c                     | 115 ++++++++++++++++++++++++++++------------
 src/evdev.h                     |  22 ++++++++
 src/libinput-private.h          |  12 ++++-
 src/libinput.c                  |  86 +++++++++++++++++++++++++++++-
 src/libinput.h                  |  74 ++++++++++++++++++++++++++
 src/libinput.sym                |   8 +++
 test/Makefile.am                |   2 +
 test/litest-mako-touch-screen.c |  93 ++++++++++++++++++++++++++++++++
 test/litest-touch-screen.c      | 100 ++++++++++++++++++++++++++++++++++
 test/litest.c                   |  45 ++++++++++++++++
 test/litest.h                   |  24 +++++++++
 test/touch.c                    |  93 ++++++++++++++++++++++++++++++++
 12 files changed, 636 insertions(+), 38 deletions(-)
 create mode 100644 test/litest-mako-touch-screen.c
 create mode 100644 test/litest-touch-screen.c

-- 
2.1.4



More information about the wayland-devel mailing list