From 22d228c1b06339d389cd096aac3f6bdf02152e6f Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 26 Apr 2023 20:14:18 +0200 Subject: [PATCH] imgui: don't send X button events to avoid the nav window popping up Issue #1034 --- core/rend/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rend/gui.cpp b/core/rend/gui.cpp index f337c12b0..48587e860 100644 --- a/core/rend/gui.cpp +++ b/core/rend/gui.cpp @@ -387,7 +387,8 @@ static void gui_newFrame() io.AddMouseButtonEvent(ImGuiMouseButton_Middle, (mouseButtons & (1 << 2)) != 0); io.AddMouseButtonEvent(3, (mouseButtons & (1 << 3)) != 0); - io.AddKeyEvent(ImGuiKey_GamepadFaceLeft, ((kcode[0] & DC_BTN_X) == 0)); + // shows a popup navigation window even in game because of the OSD + //io.AddKeyEvent(ImGuiKey_GamepadFaceLeft, ((kcode[0] & DC_BTN_X) == 0)); io.AddKeyEvent(ImGuiKey_GamepadFaceRight, ((kcode[0] & DC_BTN_B) == 0)); io.AddKeyEvent(ImGuiKey_GamepadFaceUp, ((kcode[0] & DC_BTN_Y) == 0)); io.AddKeyEvent(ImGuiKey_GamepadFaceDown, ((kcode[0] & DC_BTN_A) == 0));