[input] Start work on improved input system

The common input code (input outer loop and event handling) has been
moved into libQFinput, and modified to have the concept of input drivers
that are registered by the appropriate system-level code (x11, win,
etc).

As well, my evdev input library code (with hotplug support) has been
added, but is not yet fully functional. However, the idea is that it
will be available on all systems that support evdev (Linux, and from
what I've read, FreeBSD).
This commit is contained in:
Bill Currie 2021-08-27 09:10:21 +09:00
parent 8a5c3c1ac1
commit a91dac60d9
14 changed files with 867 additions and 43 deletions

14
include/evdev/hotplug.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef evdev_hotplug_h
#define evdev_hotplug_h
int inputlib_hotplug_init(const char *path,
void (*created) (const char*),
void (*deleted) (const char *));
void inputlib_hotplug_close (void);
int inputlib_hotplug_add_select (fd_set *fdset, int *maxfd);
int inputlib_hotplug_check_select (fd_set *fdset);
#endif//evdev_hotplug_h