-
- Downloads
input-device: Add skeleton API for enumeration and monitoring
This includes:
* a public interface implemented by input device monitors
* a public interface to be implemented by the input devices they signal
* a mock implementation for unit-testing
* a unit test for the API
* a simple implementation in terms of inotify on /dev
* a monitor that can print input devices in JSON format on stdout,
and optionally monitor them
Implementations in terms of udev, SDL, or a portal service are not yet
included. Details of the devices, beyond their paths in /dev and /sys,
are also not included.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
Showing
- COPYING 4 additions, 22 deletionsCOPYING
- COPYING.MIT 20 additions, 0 deletionsCOPYING.MIT
- COPYING.Zlib 17 additions, 0 deletionsCOPYING.Zlib
- bin/input-monitor.c 283 additions, 0 deletionsbin/input-monitor.c
- bin/input-monitor.md 96 additions, 0 deletionsbin/input-monitor.md
- bin/meson.build 11 additions, 0 deletionsbin/meson.build
- steam-runtime-tools/direct-input-device-internal.h 59 additions, 0 deletionssteam-runtime-tools/direct-input-device-internal.h
- steam-runtime-tools/direct-input-device.c 591 additions, 0 deletionssteam-runtime-tools/direct-input-device.c
- steam-runtime-tools/input-device-internal.h 63 additions, 0 deletionssteam-runtime-tools/input-device-internal.h
- steam-runtime-tools/input-device.c 458 additions, 0 deletionssteam-runtime-tools/input-device.c
- steam-runtime-tools/input-device.h 100 additions, 0 deletionssteam-runtime-tools/input-device.h
- steam-runtime-tools/meson.build 5 additions, 0 deletionssteam-runtime-tools/meson.build
- steam-runtime-tools/steam-runtime-tools.h 1 addition, 0 deletionssteam-runtime-tools/steam-runtime-tools.h
- steam-runtime-tools/utils-internal.h 2 additions, 0 deletionssteam-runtime-tools/utils-internal.h
- steam-runtime-tools/utils.c 25 additions, 0 deletionssteam-runtime-tools/utils.c
- tests/input-device.c 425 additions, 0 deletionstests/input-device.c
- tests/meson.build 12 additions, 1 deletiontests/meson.build
- tests/mock-input-device.c 354 additions, 0 deletionstests/mock-input-device.c
- tests/mock-input-device.h 105 additions, 0 deletionstests/mock-input-device.h
- tests/utils.c 15 additions, 0 deletionstests/utils.c
Loading
Please register or sign in to comment