mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
X11: Fix joystick detection before joystick init
Spotted by @Luflosi.
This commit is contained in:
parent
e0f7ce402b
commit
c01acc267a
@ -2776,6 +2776,7 @@ void _glfwPlatformPollEvents(void)
|
||||
_GLFWwindow* window;
|
||||
|
||||
#if defined(__linux__)
|
||||
if (_glfw.joysticksInitialized)
|
||||
_glfwDetectJoystickConnectionLinux();
|
||||
#endif
|
||||
XPending(_glfw.x11.display);
|
||||
|
Loading…
Reference in New Issue
Block a user