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:
parent
d0a1be0de0
commit
b174fcc9af
2 changed files with 7 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue