GLFW: X11: Fix joystick detection before joystick init
From upstream: https://github.com/glfw/glfw/commit/c01acc267ad7f5e016d905276ba38917a1fa64bb.
This commit is contained in:
Vendored
+2
-1
@@ -2653,7 +2653,8 @@ _glfwDispatchX11Events(void) {
|
||||
unsigned dispatched = 0;
|
||||
|
||||
#if defined(__linux__)
|
||||
_glfwDetectJoystickConnectionLinux();
|
||||
if (_glfw.joysticksInitialized)
|
||||
_glfwDetectJoystickConnectionLinux();
|
||||
#endif
|
||||
dispatched += dispatch_x11_queued_events(XEventsQueued(_glfw.x11.display, QueuedAfterFlush));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user