From 52dc26e99df6b8378b86b1edde5653854e98f9d1 Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 24 Dec 2024 17:28:08 -0300 Subject: [PATCH] Disable Gamepad Polling in ImGui. --- src/gui/rt64_inspector.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/rt64_inspector.cpp b/src/gui/rt64_inspector.cpp index dc509c3..8b012c9 100644 --- a/src/gui/rt64_inspector.cpp +++ b/src/gui/rt64_inspector.cpp @@ -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