mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +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;
|
_GLFWwindow* window;
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
|
if (_glfw.joysticksInitialized)
|
||||||
_glfwDetectJoystickConnectionLinux();
|
_glfwDetectJoystickConnectionLinux();
|
||||||
#endif
|
#endif
|
||||||
XPending(_glfw.x11.display);
|
XPending(_glfw.x11.display);
|
||||||
|
Loading…
Reference in New Issue
Block a user