Wayland: Fix detection of joysticks after init

Closes #2198

This was adapted to 3.3-stable from
0b94e1b29b and
3fa2360720.
This commit is contained in:
TheBrokenRail 2022-10-07 21:26:21 -04:00 committed by Camilla Löwy
parent 06a2ed38ea
commit 67d722788d
2 changed files with 5 additions and 0 deletions

View File

@ -128,6 +128,7 @@ information on what to include when reporting a bug.
- [Wayland] Disabled alpha channel for opaque windows on systems lacking - [Wayland] Disabled alpha channel for opaque windows on systems lacking
`EGL_EXT_present_opaque` (#1895) `EGL_EXT_present_opaque` (#1895)
- [Wayland] Bugfix: Buffer would overrun when storing received drag offer (#2225) - [Wayland] Bugfix: Buffer would overrun when storing received drag offer (#2225)
- [Wayland] Bugfix: Joysticks connected after `glfwInit` were not detected (#2198)
- [Linux] Bugfix: Joysticks without buttons were ignored (#2042,#2043) - [Linux] Bugfix: Joysticks without buttons were ignored (#2042,#2043)
[EGL] Added loading of glvnd `libOpenGL.so.0` where available for OpenGL [EGL] Added loading of glvnd `libOpenGL.so.0` where available for OpenGL
- [GLX] Added loading of glvnd `libGLX.so.0` where available - [GLX] Added loading of glvnd `libGLX.so.0` where available

View File

@ -1127,6 +1127,10 @@ static void inputText(_GLFWwindow* window, uint32_t scancode)
static void handleEvents(double* timeout) static void handleEvents(double* timeout)
{ {
#if defined(__linux__)
_glfwDetectJoystickConnectionLinux();
#endif
GLFWbool event = GLFW_FALSE; GLFWbool event = GLFW_FALSE;
struct pollfd fds[4] = struct pollfd fds[4] =
{ {