Skip to content

Commit 2e9fbec

Browse files
committed
Disable SDL3 raw keyboard/mouse hotplug support
1 parent 7c06648 commit 2e9fbec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,10 @@ int main(int argc, char *argv[])
730730
// incorrect objects, so we don't need additional expensive parameter checks.
731731
SDL_SetHint("SDL_INVALID_PARAM_CHECKS", "1");
732732

733+
// Disable hotplug detection for SDL_GetKeyboards() and SDL_GetMice(). We don't
734+
// use this functionality and it can cause hangs when querying broken devices.
735+
SDL_SetHint("SDL_WINDOWS_DETECT_DEVICE_HOTPLUG", "0");
736+
733737
QGuiApplication app(argc, argv);
734738

735739
#ifdef Q_OS_UNIX

0 commit comments

Comments
 (0)