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.
| 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. |
| 8152 | bool 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) |
nothing calls this directly
no test coverage detected