Added Linux joystick hot-plugging via inotify.

This is a temporary solution until the proper libudev one.

Progresses #17.
This commit is contained in:
Camilla Berglund
2013-10-16 17:24:37 +02:00
parent b19fb4c24d
commit 56202ee7c6
5 changed files with 116 additions and 44 deletions
+10
View File
@@ -31,6 +31,8 @@
#include <unistd.h>
#include <signal.h>
#include <stdint.h>
#include <regex.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
@@ -214,6 +216,14 @@ typedef struct _GLFWlibraryX11
int versionMinor;
} xinerama;
#if defined(__linux__)
struct {
int fd;
int wd;
regex_t regex;
} inotify;
#endif
} _GLFWlibraryX11;