diff --git a/src/wl_window.c b/src/wl_window.c index c4d097b7..426cbbd4 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -873,6 +873,11 @@ static void inputText(_GLFWwindow* window, uint32_t scancode) static void handleEvents(double* timeout) { +#if defined(GLFW_BUILD_LINUX_JOYSTICK) + if (_glfw.joysticksInitialized) + _glfwDetectJoystickConnectionLinux(); +#endif + GLFWbool event = GLFW_FALSE; struct pollfd fds[] = {