From 4879a35eb80de9c5662fc1532cd90b337255e069 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Fri, 12 Jun 2026 21:28:34 -0700 Subject: [PATCH] overlay: remove keyboard / gamepad tab navigation (#755) Tired of constantly fighting unintentional keyboard navigation behavior. Also, remove `ImGuiConfigFlags_IsTouchScreen` which literally does nothing. --- src/spice2x/overlay/overlay.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/spice2x/overlay/overlay.cpp b/src/spice2x/overlay/overlay.cpp index 5ddcd62..4212d4a 100644 --- a/src/spice2x/overlay/overlay.cpp +++ b/src/spice2x/overlay/overlay.cpp @@ -308,16 +308,10 @@ void overlay::SpiceOverlay::init() { // configure IO auto &io = ImGui::GetIO(); io.UserData = this; - io.ConfigFlags = ImGuiConfigFlags_NavEnableKeyboard - | ImGuiConfigFlags_NavEnableGamepad - | ImGuiConfigFlags_NavEnableSetMousePos; - + io.ConfigFlags = ImGuiConfigFlags_None; if (!cfg::CONFIGURATOR_STANDALONE) { io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; } - if (is_touch_available("SpiceOverlay::init")) { - io.ConfigFlags |= ImGuiConfigFlags_IsTouchScreen; - } // temporarily turn this off as it can cause crashes during font load failures // turns back on in ImGui_ImplSpice_Init