mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Added Linux joystick hot-plugging via inotify.
This is a temporary solution until the proper libudev one. Progresses #17.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user