Wayland: Fix detection of joysticks after init

Closes #2198
This commit is contained in:
TheBrokenRail 2022-10-07 21:26:21 -04:00 committed by Camilla Löwy
parent f27daa34ad
commit 0b94e1b29b

View File

@ -1095,6 +1095,11 @@ static void inputText(_GLFWwindow* window, uint32_t scancode)
static void handleEvents(double* timeout) static void handleEvents(double* timeout)
{ {
#if defined(GLFW_BUILD_LINUX_JOYSTICK)
if (_glfw.joysticksInitialized)
_glfwDetectJoystickConnectionLinux();
#endif
GLFWbool event = GLFW_FALSE; GLFWbool event = GLFW_FALSE;
struct pollfd fds[4] = struct pollfd fds[4] =
{ {