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
+3 -1
View File
@@ -749,8 +749,10 @@ int _glfwPlatformInit(void)
if (!_glfwInitContextAPI())
return GL_FALSE;
if (!_glfwInitJoysticks())
return GL_FALSE;
_glfwInitTimer();
_glfwInitJoysticks();
return GL_TRUE;
}