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];