Disable Gamepad Polling in ImGui.

This commit is contained in:
Dario 2024-12-24 17:28:08 -03:00
parent 16f1708da2
commit 52dc26e99d

View File

@ -78,6 +78,9 @@ namespace RT64 {
if (sdlWindow != nullptr) {
ImGui_ImplSDL2_InitForOther(sdlWindow);
// Disable Gamepad polling as it's not used at all and it has the potential to cause deadlocks with some controllers.
ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode_Manual);
}
else {
# ifdef _WIN32