mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-20 15:39:57 +00:00
Nav: keyboard/gamepad activation feedback properly timed instead of frame buffer. (#456)
Amend d10641b
This commit is contained in:
@@ -675,6 +675,10 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool
|
||||
g.ActiveIdHasBeenPressedBefore = true;
|
||||
}
|
||||
|
||||
// Activation highlight
|
||||
if (g.NavHighlightActivatedId == id)
|
||||
hovered = true;
|
||||
|
||||
if (out_hovered) *out_hovered = hovered;
|
||||
if (out_held) *out_held = held;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user