diff options
Diffstat (limited to 'evdev.h')
-rw-r--r-- | evdev.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,8 +1,13 @@ #include <sys/types.h> -#include <linux/input.h> #include "midimonster.h" +/* + * This provides read-write access to the Linux kernel evdev subsystem + * via libevdev. On systems where uinput is not supported, output can be + * disabled by building with -DEVDEV_NO_UINPUT + */ + int init(); static int evdev_configure(char* option, char* value); static int evdev_configure_instance(instance* instance, char* option, char* value); @@ -19,6 +24,8 @@ typedef struct /*_evdev_instance_model*/ { int exclusive; int output_enabled; +#ifndef EVDEV_NO_UINPUT struct libevdev* output_proto; struct libevdev_uinput* output_ev; +#endif } evdev_instance_data; |