mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-13 23:33:26 +00:00
Nav: fixed another occurence of nav cursor briefly appearing when Tabbing with ImGuiConfigFlags_NavEnableKeyboard disabled. (#9214, #9218)
Amend1566c96cc+ea83628.
This commit is contained in:
@@ -12970,6 +12970,10 @@ void ImGui::SetNavCursorVisibleAfterMove()
|
||||
ImGuiContext& g = *GImGui;
|
||||
if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs))
|
||||
g.NavCursorVisible = false;
|
||||
else if (g.NavInputSource == ImGuiInputSource_Keyboard && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) == 0)
|
||||
g.NavCursorVisible = false;
|
||||
else if (g.NavInputSource == ImGuiInputSource_Gamepad && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0)
|
||||
g.NavCursorVisible = false;
|
||||
else if (g.IO.ConfigNavCursorVisibleAuto)
|
||||
g.NavCursorVisible = true;
|
||||
g.NavHighlightItemUnderNav = g.NavMousePosDirty = true;
|
||||
|
||||
Reference in New Issue
Block a user