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

Class ImGuiKeyRoutingData

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

Routing table entry (sizeof() == 16 bytes)

Source from the content-addressed store, hash-verified

1337
1338// Routing table entry (sizeof() == 16 bytes)
1339struct ImGuiKeyRoutingData
1340{
1341 ImGuiKeyRoutingIndex NextEntryIndex;
1342 ImU16 Mods; // Technically we'd only need 4-bits but for simplify we store ImGuiMod_ values which need 16-bits. ImGuiMod_Shortcut is already translated to Ctrl/Super.
1343 ImU8 RoutingNextScore; // Lower is better (0: perfect score)
1344 ImGuiID RoutingCurr;
1345 ImGuiID RoutingNext;
1346
1347 ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; }
1348};
1349
1350// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
1351// Stored in main context (1 instance)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected