| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
Because it is... checks year... 2022 and c99 is not exactly modern
anymore anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
There's more, but let's silence some of them at least
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
NOTICE: Future-deprecated features used:
* 0.56.0: {'Dependency.get_pkgconfig_variable'}
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
|
|
|
|
|
|
|
|
| |
The codepath for pen/eraser devices is capable of using the minimum
values. Move the code to enforce a a minimum value of zero to the touch
portion of the function where it applies.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
|
|
|
|
|
|
|
| |
Note that this removes the xsetwacom tests from the autotools build,
this is meson only now.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
See #222
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous approach, written 11 years ago, relied on providing all
symbols the driver needs as stubs (see fake-symbols.c). Most of these
symbols just needed to be there so we could compile the test, they
didn't actually get utilized by the tests.
Dropping this and instead add something roughly similar to Rust: the
test function can be in the same file as the source function.
The TEST_CASE() macro uses __attribute__((section)) to push the test
cases in custom ELF section. This section we can iterate on and call all
tests one-by-one. The test runner only needs to dlopen + dlsym the
driver module and run the entry point function.
The test-suite part of this is minimal: tests can assert on failure and
everything stops. Adding things like fnmatch for test case names is
possible when/if we ever need it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
This was dragged in by the ISDV4 serial code which has since been
removed, so it's no longer required here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
With the ISDV4 code removed, this is no longer used by the driver
itself.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
As a rule of thumb, don't free anything as g_autofree, just use a new
variable instead. Easier to read this way.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
In that case, argc is 0, so --argc is < 0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
| |
xf86Post*EventP requires that the valuators array index 0 is whatever
first_valuator is.
Found in #222
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
All obsolete since ce2421a031aa0979671ce24d38c08c92b2142257
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
| |
|
|
|
|
|
|
|
| |
Those aren't used by autotools but if we want to build an
autotools-generated tarball with meson we need to provide them.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On Ubuntu 20.04 at least, libdir is /usr/lib/x86_64-linux-gnu/ but the
xorg modules are in /usr/lib/xorg/modules/. A default install with
prefix /usr thus puts the modules into the wrong directory.
Fix this by defaulting to the xorg module path from the xserver
pkgconfig file. That has been exported since 2005, so it's save to rely
on.
Fixes #217
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
Fixes #214
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
| |
This removes the compiler warnings when DEBUG is undefined, they're all
only used for debug logging but we don't want to ifdef them everywhere.
v5 is the only one "used" but only to re-calculate things.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
Both are unconditionally set a few lines south of here
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
This was always set to nbbuttons, so we don't need a separate variable
here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
| |
These always fail since we don't have the required secrets. Skip that
job unless we're on the upstream repository.
|
|
|
|
|
|
|
|
|
|
|
| |
The serial code inside the driver is effectively unused and definitely
untested. It's been a decade since the last serial devices came out and few of
those will be in active use, the few that are are likely supported by
the inputattach code we keep in place for now.
Fixes #197
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
| |
The "throttle" / absolute scrollwheel found on devices like the 4D Mouse
should be reported in the v4 axis. A typo in a previous commit caused
it to stop being reported.
Fixes: 58a931bc21 ("Abstract the event interface to pass a struct with axis data around")
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Addresses the following compile warning from GCC:
../src/x11/xf86Wacom.c: In function ‘wcmInitAxis’:
../src/x11/xf86Wacom.c:538:9: warning: ‘index’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
Attempting to initialize an unknown axis will now result in a program
abort. This copies the behavior used by the `convertAxes` function.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
No idea what this is referring to but it's no longer accurate.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
Let the caller handle the X11 constants and just take an "is_absolute"
boolean and return a boolean to indicate success
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
Now that the driver is separated into src/x11 and the file was renamed,
this comment is both wrong and outdated.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
| |
Unused in the X driver interface but for libgwacom/wacom-record we can
use this to print evdev events before driver events, making it easier to
figure out which input causes which driver output
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
| |
No longer needed
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a basic GObject-based library in lib/ that is sufficient
to interact with the driver. The example tools/wacom-record.c is
provided to illustrate the use of this library and to provide a
commandline debugging tool.
This library is for testing use only, it does not provide a stable API
and should not be used. It is not installed and only available if the
driver is built with meson.
GObject IR bindings are available too to write e.g. Python programs that
use the driver.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
|
| |
These two files are the only ones that interact with the X server, let's
move them so we have a visible separation between the core driver and
the X parts.
Renaming wcmXCommand.c to xf86WacomProperties.c in the process, for
slightly better namespacing.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
|
| |
We have driver and device logging, and each as a normal log function, a
sigsafe log path and a debug message log path. So 6 functions overall.
This doesn't matter for the X driver which routes sigsafe to
LogMessageVerbSigSafe but for other frontends it's useful to keep these
apart.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
| |
In both cases we'll use that context in a follow-up patch to hook into
the logging functions.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
| |
For devices hotplugged by the driver, we use the basename and then
append the tool type and serial (if any). No point having this in the X
driver layer, let's make this generic.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
| |
This is ugly. Ideally we'd have those valuators in a custom struct in
the driver layer but... we don't have that struct, we're using pInfo. So
rather than wrapping that into yet another struct, let's just allocate
directly here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
| |
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
|
|
|
|
|
|
|
|
| |
If configured with -Disdv4=false, the ISDV4 serial
bits will not be built, including the udev rules and the inputattach
helper and service files.
This is meson only.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|