| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
The unit tests were using stack-allocated memory smaller than
the maximum matrix size, causing compiler warnings. Fixed with
this patch.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
|
|
|
|
| |
Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
|
|
|
|
|
|
|
|
|
|
| |
libc that has support for 32 bit applications to use 64 bit
time_t supplies __USE_TIME_BITS64 define [1]
[1] https://sourceware.org/glibc/wiki/Y2038ProofnessDesign
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This way, it can be used to specify the `absbits` array size (in
`mtdev_configure`) without making it a VLA.
VLAs are an optional feature in C11, and in this case we can determine
the array size statically.
This also matches the macros used in libevdev and libinput.
Signed-off-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
|
|
|
|
|
|
| |
n1 and n2 are only locally used and can thus be static.
Signed-off-by: Martin Kepplinger <martink@posteo.de>
|
|
|
|
|
|
| |
init_caps() is only locally used and can thus be static.
Signed-off-by: Martin Kepplinger <martink@posteo.de>
|
|
|
|
|
|
| |
mtdev_set_slots() is only used internally, so it should be static.
Signed-off-by: Martin Kepplinger <martink@posteo.de>
|
|
|
|
| |
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
|
| |
Make it possible to build the source out-of-tree. The gnome-continuous
build system does this by default.
Signed-off-by: Colin Walters <walters@verbum.org>
[rydberg@euromail.se: Resolve merge conflict]
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
| |
Some tests do #include relative to the top-level, so add top_srcdir to the
include path as otherwise out-of-tree builds can't find the files.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
| |
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|\
| |
| |
| |
| |
| | |
declaration of the backwards compatibility constraints on the API.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
| |
| |
| |
| |
| | |
silent rules make it easier to spot compiler errors
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
| |
| |
| |
| |
| |
| |
| |
| | |
mtdev-kernel.c:130:2: warning: implicit declaration of function ‘atoi’
[-Wimplicit-function-declaration]
eslot = atoi(argv[1]) + 1;
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
| |
| |
| |
| |
| |
| |
| |
| | |
match_four.c:80:4: warning: implicit declaration of function 'abs'
[-Wimplicit-function-declaration]
*dist++ = abs(q->x - p->x) + abs(q->y - p->y);
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|/
|
|
|
|
|
| |
The 11 comes from the legacy API that we need to be binary compatible with.
Make this clear with a define and a comment.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|\
| |
| |
| | |
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
| |
| |
| |
| |
| | |
src/Makefile.am:22: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|/
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
|
|
|
| |
The pkgconfig file does not specify the -I flag needed to be able to
compile with `pkg-config mtdev --cflags` when libmtdev is installed to
a directory that is not searched by the C compiler by default.
This patch fixes the issue.
Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
| |
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
| |
From kernel 3.4, extraction of the MT slot state is supported
via the EVIOGMTSLOTS ioctl. This patch initializes the slots
using that information.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
| |
The new distance value was missing from the internal representation,
leading to memory corruption for devices supporting the event. Fixed
with this patch.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
| |
[rydberg@euromail.se: minor cleanup]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
| |
Saves us one goto label in mtdev_init.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
| |
This version includes backwards-compatible API changes,
while keeping the ABI stable. Applications that want to
migrate to the new API, compile with -DMTDEV_NO_LEGACY_API.
|
|
|
|
|
|
| |
At startup, output the MT events supported by the device.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
|
| |
In the upcoming 2.6.38 kernel, support for hovering is introduced.
Add the ABS_MT_DISTANCE to the extended set of handled ABS_MT events.
The change is binary compatible with existing libraries.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current mtdev is not ABI stable, and the upcoming additions
to the kernel api will break ABI. This patch starts the process
of keeping binary compatibility with old programs, by moving the
abi-specific parts under a special flag, MTDEV_NO_LEGACY_API,
and makes sure the internal parts compiles with MTDEV_NO_LEGACY_API
set. This way, older programs will still work, old programs will
still compile, and new programs will be able to use the additions.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
| |
Reported-by: Armando Visconti <armando.visconti@st.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This matcher is for up to four fingers, and has these properties:
* Approximately 1.4 times faster at 4 fingers
* Approximately 4.0 times faster at 2 fingers
* Roughly 100 lines of code
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
| |
This application generates the matcher tables of the tracking
library in the linux kernel.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
|
|
|
| |
Measures matching speed and provides some historically difficult
test cases.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|
|
|
|
|
|
|
|
| |
In case mtdev is driving a non-MT device, basic dimensions are not set
properly. Fall back on ABS_X/Y and ABS_PRESSURE, such that basic
pointer operations can be supported through mtdev.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
|
|
|
|
|
|
|
| |
Applications may need to know the property mapping, and the plumbing
interface is actually supported, so install both headers.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
|
|
|
|
|
|
|
| |
Add the missing property values to the mapgen output, and insert the
result in the mtdev mapping header file.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
|
| |
|
|
|
|
|
|
|
| |
This patch fixes the broken logic to detect the kernel MT slots protocol,
such that MT slots devices may pass through mtdev properly.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|
|
|
|
|
|
|
|
| |
This package has no external dependencies and should not depend
on the xorg macros. This patch removes the dependency, adds a tailored
INSTALL file, and uses git to generate the ChangeLog.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|
|
|
|
|
|
| |
list, so make sure it is always defined in mtdev.h
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|
|
|
|
|
|
|
| |
In order to simplify packaging, rename the current mtdev
device test program to mtdev-test.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|
|
|
|
|
|
|
|
| |
In order for make dist-gzip to work properly, all files needed
to build the system need to be listed. This patch adds the missing
header files to the sources directive.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
| |
|