Nav: fixed holding Ctrl or gamepad L1 from not slowing down keyboard/gamepad tweak speed.

Broken by 8b8a61bd + Comments (#7570)
This commit is contained in:
ocornut
2024-05-13 19:03:04 +02:00
parent 5e23680454
commit d06b8b58d8
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -699,7 +699,8 @@ namespace ImGui
// Tooltips
// - Tooltips are windows following the mouse. They do not take focus away.
// - A tooltip window can contain items of any types. SetTooltip() is a shortcut for the 'if (BeginTooltip()) { Text(...); EndTooltip(); }' idiom.
// - A tooltip window can contain items of any types.
// - SetTooltip() is more or less a shortcut for the 'if (BeginTooltip()) { Text(...); EndTooltip(); }' idiom (with a subtlety that it discard any previously submitted tooltip)
IMGUI_API bool BeginTooltip(); // begin/append a tooltip window.
IMGUI_API void EndTooltip(); // only call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true!
IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip().