Fixed bug 4286 - Joystick subsystem causes "not responding" when app is in the background

Added a hint to control whether a separate thread should be used for joystick events.
This is off by default because dispatching messages in other threads appears to cause problems on some versions of Windows.
This commit is contained in:
Sam Lantinga 2020-12-12 22:08:02 -08:00
parent bca9decbda
commit 13a4caf1d7
3 changed files with 86 additions and 31 deletions

View file

@ -705,8 +705,7 @@ LINUX_JoystickInit(void)
SDL_LogWarn(SDL_LOG_CATEGORY_INPUT,
"Unable to initialize inotify, falling back to polling: %s",
strerror (errno));
}
else {
} else {
/* We need to watch for attribute changes in addition to
* creation, because when a device is first created, it has
* permissions that we can't read. When udev chmods it to