Part of the big revamp to get rid of libinput_tablet_tool_axis and
replace it with a set of axis-specific APIs.
Only the rel wheel has true delta events, everything else is a delta
calculated by libinput based on the previous position. Since we supply that
position to the callers anyway, they can
This patchset changes the Tablet API from an API where we have a few
functions that take an axis type into one where we have an API that is
specific to each axis type.
The one-size-fits-all approach turned out to be too inflexible to be useful
and forced a couple of special API behaviours, e.g. g
Part of the big revamp to get rid of libinput_tablet_tool_axis and
replace it with a set of axis-specific APIs.
Note that this commit drops the ability to check whether a tablet has an x or
y axis. If it doesn't, libinput won't initialize the tablet anyway so this was
superfluous already.
Likewis
Internally we still use it, at least for now.
Signed-off-by: Peter Hutterer
---
src/libinput-private.h | 16 ++--
src/libinput.h | 21 -
2 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/src/libinput-private.h b/src/libinput-private.h
index
Second part of the big revamp to get rid of libinput_tablet_tool_axis and
replace it with a set of axis-specific APIs.
Note that this commit drops the ability to get the absolute value from a
relative wheel. The previous API always returned 0 for this case, it is not
needed anymore.
Signed-off-by
First part of the big revamp to get rid of libinput_tablet_tool_axis and
replace it with a set of axis-specific APIs.
Signed-off-by: Peter Hutterer
---
src/libinput.c | 128 +++--
src/libinput.h | 146 +
If a tool wears out, it may have a pre-loaded pressure offset. In that case,
even when the tool is not physically in contact with the tablet surface it
will send pressure events.
Use automatic pressure offset detection, similar to what the X.Org wacom
driver does. On proximity-in, check the pressu