MCPcopy Create free account
hub / github.com/RenderKit/embree / TestShortcutRouting

Method TestShortcutRouting

tutorials/common/imgui/imgui.cpp:8152–8157  ·  view source on GitHub ↗

Currently unused by core (but used by tests) Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading.

Source from the content-addressed store, hash-verified

8150// Currently unused by core (but used by tests)
8151// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading.
8152bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id)
8153{
8154 const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id);
8155 ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord);
8156 return routing_data->RoutingCurr == routing_id;
8157}
8158
8159// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes.
8160// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87)

Callers

nothing calls this directly

Calls 1

GetRoutingIdFromOwnerIdFunction · 0.85

Tested by

no test coverage detected