summaryrefslogtreecommitdiff
path: root/tools/interactive-evdev.c
Commit message (Collapse)AuthorAgeFilesLines
* interactive-evdev: fix missing initializationRan Benita2021-03-281-1/+1
| | | | | | Accidentally got lost in 6b65be4. Signed-off-by: Ran Benita <ran@unusedvar.com>
* interactive-evdev: switch from epoll(2) to poll(2)Ran Benita2021-03-281-26/+19
| | | | | | | | Turns out FreeBSD supports evdev, so this toll can work on it; however it does not support epoll, so switch to poll, which is portable. Reported-by: Evgeniy Khramtsov <evgeniy@khramtsov.org> Signed-off-by: Ran Benita <ran@unusedvar.com>
* tools/interactive-evdev: fixup 64bff65Ran Benita2020-07-271-1/+1
| | | | Signed-off-by: Ran Benita <ran@unusedvar.com>
* tools/interactive-evdev: change --evdev-offset to --without-x11-offsetRan Benita2020-07-271-11/+5
| | | | | | There is no reason to give full control rather than just enable/disable. Signed-off-by: Ran Benita <ran@unusedvar.com>
* tools: some minor changes to xkbcliRan Benita2020-07-251-4/+18
| | | | Signed-off-by: Ran Benita <ran@unusedvar.com>
* tools: switch interactive-evdev to getopt_longPeter Hutterer2020-07-251-30/+69
| | | | | | | | | | | | | | | | | Requiring long options for this tool means it's immediately obvious what an invocation does, compare e.g. xkbcli interactive-evdev -gcd to the equivalent: xkbcli interactive-evdev --consumed-mode=gtk --enalbe-compose --report-state-changes This drops the evdev offset argument - that offset should never be anything other than 8, having this as argument here is more likely to confuse or produce misleading debugging logs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: consistently return 2 on invalid usagePeter Hutterer2020-07-251-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: don't depend on src/utils.hRan Benita2020-06-281-5/+5
| | | | | | | The idea is to make the tools/demos as standalone as possible so that they may serve as examples as well. Signed-off-by: Ran Benita <ran@unusedvar.com>
* tools: move the remaining tools from test to herePeter Hutterer2020-06-251-0/+520
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>