mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-02 22:06:14 +00:00
Disable SDL3 raw keyboard/mouse hotplug support
This commit is contained in:
@@ -730,6 +730,10 @@ int main(int argc, char *argv[])
|
||||
// incorrect objects, so we don't need additional expensive parameter checks.
|
||||
SDL_SetHint("SDL_INVALID_PARAM_CHECKS", "1");
|
||||
|
||||
// Disable hotplug detection for SDL_GetKeyboards() and SDL_GetMice(). We don't
|
||||
// use this functionality and it can cause hangs when querying broken devices.
|
||||
SDL_SetHint("SDL_WINDOWS_DETECT_DEVICE_HOTPLUG", "0");
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
|
||||
Reference in New Issue
Block a user