1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Added IsAnyWindowFocused() (from Nav branch).

This commit is contained in:
omar 2017-12-12 23:35:04 +01:00
parent d0a1be0de0
commit b174fcc9af
2 changed files with 7 additions and 0 deletions

View file

@ -3399,6 +3399,12 @@ bool ImGui::IsAnyWindowHovered()
return g.HoveredWindow != NULL;
}
bool ImGui::IsAnyWindowFocused()
{
ImGuiContext& g = *GImGui;
return g.NavWindow != NULL;
}
static bool IsKeyPressedMap(ImGuiKey key, bool repeat)
{
const int key_index = GImGui->IO.KeyMap[key];