Refactor: moved section in imgui_internal.h

This commit is contained in:
ocornut
2024-01-22 16:32:08 +01:00
parent 9266c0d2d1
commit 7c3fa7d049
3 changed files with 65 additions and 53 deletions

View File

@ -597,7 +597,7 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool
g.NavDisableHighlight = true;
}
// Gamepad/Keyboard navigation
// Gamepad/Keyboard handling
// We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse.
if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover)
if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus))