MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetKeyOwnerData

Function GetKeyOwnerData

KBotExt/imgui/imgui_internal.h:3006–3006  ·  view source on GitHub ↗

Test that key is either not owned, either owned by 'owner_id'

Source from the content-addressed store, hash-verified

3004 IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'.
3005 IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id'
3006 inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiContext* ctx, ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(ctx, key); IM_ASSERT(IsNamedKey(key)); return &ctx->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; }
3007
3008 // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
3009 // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.

Callers 5

UpdateKeyRoutingTableMethod · 0.85
GetKeyOwnerMethod · 0.85
TestKeyOwnerMethod · 0.85
SetKeyOwnerMethod · 0.85
ShowMetricsWindowMethod · 0.85

Calls 2

IsNamedKeyFunction · 0.85

Tested by 1

TestKeyOwnerMethod · 0.68