Fix Detecting New Joysticks On Wayland After Window Created

This commit is contained in:
TheBrokenRail 2022-10-07 21:26:21 -04:00
parent dd8a678a66
commit 8e2974a59c

View File

@ -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[] =
{