Always poll udev on supported platforms

Fixes https://github.com/libsdl-org/SDL/issues/13995
This commit is contained in:
Sam Lantinga
2025-09-20 11:13:39 -07:00
parent 8eeae5f686
commit 6a9ac1cacd
3 changed files with 6 additions and 5 deletions

View File

@@ -973,7 +973,7 @@ static void LINUX_JoystickDetect(void)
{
#ifdef SDL_USE_LIBUDEV
if (enumeration_method == ENUMERATION_LIBUDEV) {
SDL_UDEV_Poll();
// Polling will happen in the main event loop
} else
#endif
#ifdef HAVE_INOTIFY