mirror of
https://github.com/glfw/glfw.git
synced 2025-06-08 00:34:56 +00:00
Fix Detecting New Joysticks On Wayland After Window Created
This commit is contained in:
parent
dd8a678a66
commit
8e2974a59c
@ -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[] =
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user