diff options
author | cbdev <cb@cbcdn.com> | 2018-03-09 16:25:38 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-03-09 16:25:38 +0100 |
commit | 8013252035a63b6133cb6dc5b0c64d97bf39b96d (patch) | |
tree | c48592b312b7a0544d5f6d39ef71c15160fe4390 /backends/evdev.h | |
parent | 978cfdfda1ab427b67ebb32eaa1ea2c07a711b41 (diff) | |
download | midimonster-8013252035a63b6133cb6dc5b0c64d97bf39b96d.tar.gz midimonster-8013252035a63b6133cb6dc5b0c64d97bf39b96d.tar.bz2 midimonster-8013252035a63b6133cb6dc5b0c64d97bf39b96d.zip |
Implement evdev device matching by name
Diffstat (limited to 'backends/evdev.h')
-rw-r--r-- | backends/evdev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/evdev.h b/backends/evdev.h index 89a08ae..c6e3a25 100644 --- a/backends/evdev.h +++ b/backends/evdev.h @@ -18,6 +18,12 @@ static int evdev_handle(size_t num, managed_fd* fds); static int evdev_start(); static int evdev_shutdown(); +#define INPUT_NODES "/dev/input" +#define INPUT_PREFIX "event" +#ifndef UINPUT_MAX_NAME_SIZE + #define UINPUT_MAX_NAME_SIZE 512 +#endif + typedef struct /*_evdev_instance_model*/ { int input_fd; struct libevdev* input_ev; |