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
+2 -1
View File
@@ -42,10 +42,11 @@ typedef struct _GLFWjoystickLinux
unsigned char* buttons;
int buttonCount;
char* name;
char* path;
} _GLFWjoystickLinux;
void _glfwInitJoysticks(void);
int _glfwInitJoysticks(void);
void _glfwTerminateJoysticks(void);
#endif // _linux_joystick_h_