--- a/src/x11_window.c +++ b/src/x11_window.c @@ -2830,7 +2830,7 @@ { drainEmptyEvents(); -#if defined(__linux__) +#if defined(__linux__) && !defined(__ANDROID__) _glfwDetectJoystickConnectionLinux(); #endif XPending(_glfw.x11.display);