summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libevdev 1.10.1libevdev-1.10.1Peter Hutterer2021-01-112-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc: fix conflicting documentation for libevdev_get_event_value()Peter Hutterer2021-01-081-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>
* gitlab CI: use Fedora 33 and Ubuntu 20.10Peter Hutterer2021-01-043-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>
* gitlab CI: make the custom build reference automatedPeter Hutterer2021-01-041-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>
* include: sync event codes with kernel 5.10Peter Hutterer2020-12-142-0/+8
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CODING_STYLE.md: fix a typoShuo Wang2020-11-031-1/+1
| | | | Signed-off-by: Shuo Wang <wangshuo47@huawei.com>
* libevdev 1.10.0libevdev-1.10.0Peter Hutterer2020-10-262-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* README: drop an obsolete paragraphPeter Hutterer2020-10-261-3/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libevdev 1.10rc2libevdev-1.9.902Peter Hutterer2020-10-202-2/+2
|
* Add libevdev_disable_propertyScott Jann2020-10-194-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>
* Add link to Rust bindingsNayan Deshmukh2020-10-101-0/+1
| | | | Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
* libevdev 1.10rc1libevdev-1.9.901Peter Hutterer2020-10-062-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a man page for the touchpad-edge-detector toolPeter Hutterer2020-10-064-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>
* meson.build: install the libevdev-tweak-device man pagePeter Hutterer2020-10-061-1/+1
| | | | | | This got lost in meson conversion Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: Remove signalfd.h include againNiclas Zeising2020-09-192-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>
* include: sync event codes with kernel 5.8Peter Hutterer2020-09-114-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>
* doc: fix doxyen complaints after fd6c9b8ca0ec0791cPeter Hutterer2020-09-111-5/+5
| | | | | | Fixes fd6c9b8ca0ec0791c9aca11314bcb39f9c08555b Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab ci: run the qemu jobs on F32Peter Hutterer2020-09-112-26/+26
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to use F32Peter Hutterer2020-09-112-53/+53
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* [clang-tidy] do not use else after returnRosen Penev2020-08-274-44/+67
| | | | | | Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>
* libevdev: sort includes alphabeticallyRosen Penev2020-08-277-26/+30
| | | | | | Found with clang-tidy's llvm-include-order Signed-off-by: Rosen Penev <rosenp@gmail.com>
* libevdev: remove pointless return in void functionRosen Penev2020-08-271-2/+0
| | | | | | Found with clang-tidy's readability-redundant-control-flow Signed-off-by: Rosen Penev <rosenp@gmail.com>
* libevdev: fix inconsistent declarationsRosen Penev2020-08-271-5/+5
| | | | | | Found with clang-tidy's readability-inconsistent-declaration-parameter-name Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Document FreeBSD quirksNiclas Zeising2020-08-141-0/+11
| | | | | | Document FreeBSD quirks related to syspath. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* tests: Add FreeBSD specific testsNiclas Zeising2020-08-141-0/+94
| | | | | | | | | | | | Add two FreeBSD specific tests: test_uinput_check_devnode_bsd checks that libevdev_uinput_get_devnode() returns something sensible. This is modelled on the Linux test test_uinput_check_syspath_name, but uses devnode instead of syspath, since reeBSD doesn't have sysfs. test_uinput_check_syspath_bsd checks that libevdev_uinput_get_syspath() always returns NULL. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* tests: Disable attach debugger on FreeBSDNiclas Zeising2020-08-141-3/+8
| | | | | | | Disable attaching a debugger on FreeBSD, since FreeBSD lacks support for PTRACE_ATTACH. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* tests: disable force feedback events on FreeBSDNiclas Zeising2020-08-141-0/+8
| | | | | | | FreeBSD does not support force feedack events. Disable the test for this event when running on FreeBSD. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* tests: Use CLOCK_MONOTONIC_FAST on FreeBSDNiclas Zeising2020-08-141-1/+8
| | | | | | | | FreeBSD does not have CLOCK_MONOTONIC_RAW, instead use CLOCK_MONOTONIC_FAST. This test checks that libevdev_set_clock_id() fails when called with CLOCK_MONOTONIC_[RAW,FAST]. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* uinput: Implement FreeBSD fetch_syspath_and_devnode()Niclas Zeising2020-08-141-0/+30
| | | | | | | | | | | | Implement a FreeBSD version of fetch_syspath_and_devnode(). FreeBSD does not have sysfs, so instead fetch the device node directly as as this matches with what is returned by the UI_GET_SYSNAME ioctl(). Since there is no sysfs, libevdev_uinput.syspath will always be set to NULL. If the ioctl fail, return -1 from fetch_syspath_and_devnode(), since there is no other way to figure out the device node path. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* uinput: Move SYS_INPUT_DIR to where it is usedNiclas Zeising2020-08-141-2/+2
| | | | | | | | Move the definition of SYS_INPUT_DIR to where it is used, instead of at the top of the file, to make it easier to find. Undefine it at the end of usage to avoid accidental uses. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* tools: use basename(argv[0]) for program nameNiclas Zeising2020-08-143-15/+18
| | | | | | | | Use baename(argv[0]) to get the program name (for usage), instead of using program_invocation_short_name, which only exists on Linux, not FreeBSD. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* tools: Remove signalfd() useNiclas Zeising2020-08-142-26/+28
| | | | | | | | | | | | Remove signalfd() use from the mouse-dpi-tool and touchpad-edge-detector tools, in favor of using plain old signals. FreeBSD does not have signalfd() without pulling in external libraries, and with this change these tools can be compiled on FreeBSD. Instead of providing two implementations, one using signalfd() and one using signal(), just use the signal() implementation everywhere as it is more portable. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* Add FreeBSD compatible input.h and uinput.hNiclas Zeising2020-08-1411-750/+2463
| | | | | | | | | | | | | | | | | Add FreeBSD compatible input.h and uinput.h files. This is done by moving the linux files to include/linux/linux, adding the freebsd versions in include/linux/freebsd, and then changing include/linux/[u]input.h to pull in the right one depending on which OS we are compiling on. Make sure that the build infrastructure in meson.build and autoconf.ac/Makefile.am uses the correct files when building and as dependency for targets, and ensure that make-event-names.py get the correct files as arguments. A similar change has been done in libinput in 61f3e3854458c556a01fb05d7abb22733fd2b7c1 Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* Don't hardcode /bin/bashNiclas Zeising2020-08-133-3/+5
| | | | | | | | Don't hardcode /bin/bash, use /usr/bin/env bash instead, since not all platforms install bash as /bin/bash. FreeBSD, as an example, installs bash in /usr/local/bin/bash by default. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* libevdev 1.9.1libevdev-1.9.1Peter Hutterer2020-07-162-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libevdev: any value less than 0 has a NULL namePeter Hutterer2020-07-152-1/+2
| | | | | | Fixes https://gitlab.freedesktop.org/libevdev/libevdev/-/issues/15 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move MR check to a later stagePeter Hutterer2020-06-302-2/+4
| | | | | | | | This gives the developer enough time to file an MR after pushing a branch. Having this run in the first stage means we get false positives because no MR has been filed yet when the job is run. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: fix the repo name for excluding checks on masterPeter Hutterer2020-06-162-2/+2
| | | | | | Fixes 2698867311db78a7190bba1a20f0f27cfa04ffad Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: use ci-fairy to check commits and merge requestsPeter Hutterer2020-06-163-136/+50
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* include: sync event codes with kernel 5.7Peter Hutterer2020-06-042-1/+83
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move the pip dependencies to before_scriptPeter Hutterer2020-06-042-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: alpine needs pip explicitly installed nowPeter Hutterer2020-06-042-6/+6
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add a CODING_STYLE documentPeter Hutterer2020-06-021-0/+222
| | | | | | Copied from libinput with a few minor changes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add link to Haskell bindingsGeorge Thomas2020-06-021-0/+1
| | | | Signed-off-by: George Thomas <georgefsthomas@gmail.com>
* Match if/else blocks for curly bracesPeter Hutterer2020-05-262-16/+27
| | | | | | Where either block has braces, the other half should too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: specify width by height in the edge-detector helpPeter Hutterer2020-05-071-1/+1
| | | | | | Fixes #13 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab-ci: update to ubuntu 20.04Peter Hutterer2020-05-012-32/+32
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: rename the example device in the touchpad-edge-detectorPeter Hutterer2020-04-281-1/+1
| | | | | | In the hope that people don't blindly type event0 from now on. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update docs for how to schedule the auth variablePeter Hutterer2020-03-182-2/+2
| | | | | | | Safer to have this defined in the scheduled job only rather than the project itself. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move to use ci-fairyPeter Hutterer2020-03-185-132/+14
| | | | | | | | | | | ci-templates now has a new tool ci-fairy that replaces our jinja generation script with something (eventually) unified across project repositories. Let's move the files to the expected locations .gitlab-ci/config.yml and .gitlab-ci/ci.template. ci-fairy also has a wrapper to delete images, let's start using that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>