summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-08-08configure.ac: Update the bug report URL.Douglas R. Reno1-1/+1
While I was running the tests for libevdev on a system, I had a test failure, and it told me to report it to bugs.freedesktop.org. This project uses GitLab now, so update the URL. Signed-off-by: Douglas R. Reno <renodr@linuxfromscratch.org>
2022-08-02libevdev 1.13.0libevdev-1.13.0Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-08-02include: sync event codes with kernel 5.19Peter Hutterer3-4/+50
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-12meson: drop the uinput.h header listingPeter Hutterer1-4/+0
This is a noop, meson gets its compile dependencies from the compiler, listing it here makes no difference. Same is true for listing the other two linux/input/*.h headers as sources. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-12meson.build: drop the use of join_pathsPeter Hutterer1-10/+10
Replace with the slash notation supported since 0.49 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-12meson.build: use project_source_root() instead of source_root()Peter Hutterer1-8/+9
The latter is deprecated, so let's bump the meson version requirement and use the newer, shiny feature. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-11uinput: use named initializers for the event structPeter Hutterer1-1/+7
With the 64 bit timestamps, the struct layout changes into a flatter version, so let's use the input_event_(u)sec helpers to transparently handle this. Fixes #25 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-11Fix a few whitespace/coding style issuesPeter Hutterer3-3/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-11Fix a compiler warningPeter Hutterer1-1/+2
[1/16] Compiling C object libevdev.so.2.3.0.p/libevdev_libevdev.c.o ../libevdev/libevdev.c:665:40: warning: argument 2 of type ‘struct slot_change_state[dev->num_slots]’ declared as a variable length array [-Wvla-parameter] 665 | struct slot_change_state changes_out[dev->num_slots]) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../libevdev/libevdev.c:47:52: note: previously declared as a pointer ‘struct slot_change_state *’ 47 | struct slot_change_state *changes_out); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-07-11meson: up the timeout to 10s per testPeter Hutterer1-1/+1
Fixes #26 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-25meson.build: install the mouse-dpi-tool man pagePeter Hutterer1-1/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-25libevdev 1.12.1libevdev-1.12.1Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-22include: sync key codes with kernel 5.17Peter Hutterer2-2/+6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-02-02gitlab CI: update to current distribution versions, drop CentosPeter Hutterer3-204/+84
No big point building for Centos 7 anywmore, and Centos 8 is now Centos Stream only which needs fixing in the CI templates first. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-11-15Add a manpage for mouse-dpi-toolStephen Kitt2-0/+19
Signed-off-by: Stephen Kitt <steve@sk2.org>
2021-11-09libevdev 1.12.0libevdev-1.12.0Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-11-09tools: add a helper tool to list all currently known codesPeter Hutterer3-1/+56
A non-installed tool to make it easy to check if newly added codes are indeed supported correctly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-11-09include: sync event codes with kernel 5.15Peter Hutterer3-1/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-09-04doc: fix initialization and setup errorJosé Expósito1-1/+1
Remove an unnecessary and unmatched curly bracket from the demo code. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
2021-09-04doc: fix uinput device creation warningsJosé Expósito1-3/+2
The example code for creating uinput devices produces the following warnings: warning: unused variable ‘ev’ [-Wunused-variable] | struct input_event ev[2]; | ^~ warning: unused variable ‘new_fd’ [-Wunused-variable] | int fd, new_fd, uifd; | ^~~~~~ warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized] | return err; | ^~~ Signed-off-by: José Expósito <jose.exposito89@gmail.com>
2021-08-17doc: fix typosUlrich Ölmann1-5/+5
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
2021-08-17doc: fix uinput example codeUlrich Ölmann1-1/+1
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
2021-07-26gitlab CI: update to latest ci-templatesPeter Hutterer3-18/+18
We can ditch the custom localhost usages and instead use the vmctl and ssh-config aliases. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-06-21build: properly link against rtSimeon Schaub1-1/+2
This is especially relevant for cross-compilation, since libevdev uses `clock_gettime`. This came up in https://github.com/JuliaPackaging/Yggdrasil/pull/3201. Signed-off-by: Simeon Schaub <simeondavidschaub99@gmail.com>
2021-05-19gitlab CI: bump to Fedora 34 and Ubuntu 21.04Peter Hutterer2-63/+63
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-05-19gitlab CI: make the tarball distro selection automaticPeter Hutterer3-5/+9
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-05-19gitlab CI: make the qemu selection automaticPeter Hutterer3-41/+16
Generate the snippet for whichever is the last version in the list for the want_qemu tag. And move the want_qemu tag up so it's more obvious in the config file. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-22make-event-names: Fix determinism issueRichard Purdie1-3/+3
The order of dict values is not deterministic in python leading to differing  header file generation which results in differing build output for the same configuration. Sort to remove this inconsistency and make the output  reproducible. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Reviewed-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-01libevdev 1.11.0libevdev-1.11.0Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-25Change to the (always intended) MIT licensePeter Hutterer29-520/+86
Due to what must've been a copy/paste error many years ago, the license text for libevdev wasn't actually the MIT license. Let's rectify this, it was always MIT intended anyway. To make this more obvious and reduce the chance of copy/paste mistakes, use the SPDX license identifier in the various source files. The two installed public header files have the full license text. All contributors with copyrightable contributions have ACKed the license change to MIT, either in the MR directly [1] or privately in reply to an email. [1] https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/69 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Alexander Dahl <ada@thorsis.com> Acked-by: Andreas Pokorny <andreas.pokorny@canonical.com> Acked-by: Armin K <krejzi@email.com> Acked-by: Benjamin Tissoires <btissoir@redhat.com> Acked-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Deepa Dinamani <deepa.kernel@gmail.com> Acked-by: Emmanuele Bassi <ebassi@gnome.org> Acked-by: Gaetan Nadon <memsize@videotron.ca> Acked-by: George Thomas <georgefsthomas@gmail.com> Acked-by: Michael Forney <mforney@mforney.org> Acked-by: Nayan Deshmukh <nayan26deshmukh@gmail.com> Acked-by: Niclas Zeising <zeising@daemonic.se> Acked-by: Owen W. Taylor <otaylor@fishsoup.net> Acked-by: Peter Seiderer <ps.report@gmx.net> Acked-by: Ran Benita <ran234@gmail.com> Acked-by: Rosen Penev <rosenp@gmail.com> Acked-by: Scott Jann <sjann@knight-rider.org> Acked-by: Thilo Schulz <thilo@tjps.eu> Acked-by: polyphemus <rolfmorel@gmail.com>
2021-01-11libevdev 1.10.1libevdev-1.10.1Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-08doc: fix conflicting documentation for libevdev_get_event_value()Peter Hutterer1-2/+1
Yes, the value we return is from the currently active slot, but there are a few niche cases where the active slot changes from what the client may think it is. So let's call it undefined like the other half of the documentation already does. Fixes #20 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-04gitlab CI: use Fedora 33 and Ubuntu 20.10Peter Hutterer3-74/+70
This requires latest CI templates for the mkosi changes. Since the start_vm.sh script is now gone, switch to using vmctl instead. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-04gitlab CI: make the custom build reference automatedPeter Hutterer1-5/+6
We still require Fedora for the various jobs with custom autotools/meson configurations. But we might as well make it dependent on the config file entries only than hardcoding it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-12-14include: sync event codes with kernel 5.10Peter Hutterer2-0/+8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-11-03CODING_STYLE.md: fix a typoShuo Wang1-1/+1
Signed-off-by: Shuo Wang <wangshuo47@huawei.com>
2020-10-26libevdev 1.10.0libevdev-1.10.0Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-10-26README: drop an obsolete paragraphPeter Hutterer1-3/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-10-20libevdev 1.10rc2libevdev-1.9.902Peter Hutterer2-2/+2
2020-10-19Add libevdev_disable_propertyScott Jann4-0/+34
On some devices, a kernel input property has been set in error and we need the ability to disable that property. Signed-off-by: Scott Jann <sjann@knight-rider.org>
2020-10-10Add link to Rust bindingsNayan Deshmukh1-0/+1
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
2020-10-06libevdev 1.10rc1libevdev-1.9.901Peter Hutterer2-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-10-06tools: add a man page for the touchpad-edge-detector toolPeter Hutterer4-4/+51
Requires some .gitignore pattern removal too and an autotools fix to actually dist the man pages. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-10-06meson.build: install the libevdev-tweak-device man pagePeter Hutterer1-1/+1
This got lost in meson conversion Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-19tools: Remove signalfd.h include againNiclas Zeising2-2/+0
Remove the includsion of sys/signalfd.h again, it hasn't been needed since cca90938 and was accidentally re-added, probably as a mismerge, in a40e014e. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
2020-09-11include: sync event codes with kernel 5.8Peter Hutterer4-7/+10
And fix the script to sync the headers up so it syncs event codes for both bsd and linux, but only syncs input.h for linux. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-11doc: fix doxyen complaints after fd6c9b8ca0ec0791cPeter Hutterer1-5/+5
Fixes fd6c9b8ca0ec0791c9aca11314bcb39f9c08555b Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-11gitlab ci: run the qemu jobs on F32Peter Hutterer2-26/+26
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-11gitlab CI: update to use F32Peter Hutterer2-53/+53
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-27[clang-tidy] do not use else after returnRosen Penev4-44/+67
Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>