|
@@ -357,7 +357,7 @@ CODE
|
|
|
|
|
|
To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest of your application,
|
|
To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest of your application,
|
|
you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags!
|
|
you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags!
|
|
- Please read the FAQ and example applications for details about this!
|
|
|
|
|
|
+ Please read the FAQ entry "How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?" about this.
|
|
|
|
|
|
|
|
|
|
HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE
|
|
HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE
|
|
@@ -5338,6 +5338,9 @@ bool ImGui::IsItemToggledSelection()
|
|
return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false;
|
|
return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// IMPORTANT: If you are trying to check whether your mouse should be dispatched to Dear ImGui or to your underlying app,
|
|
|
|
+// you should not use this function! Use the 'io.WantCaptureMouse' boolean for that!
|
|
|
|
+// Refer to FAQ entry "How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?" for details.
|
|
bool ImGui::IsAnyItemHovered()
|
|
bool ImGui::IsAnyItemHovered()
|
|
{
|
|
{
|
|
ImGuiContext& g = *GImGui;
|
|
ImGuiContext& g = *GImGui;
|
|
@@ -7463,6 +7466,10 @@ bool ImGui::IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_b
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// Is current window hovered and hoverable (e.g. not blocked by a popup/modal)? See ImGuiHoveredFlags_ for options.
|
|
|
|
+// IMPORTANT: If you are trying to check whether your mouse should be dispatched to Dear ImGui or to your underlying app,
|
|
|
|
+// you should not use this function! Use the 'io.WantCaptureMouse' boolean for that!
|
|
|
|
+// Refer to FAQ entry "How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?" for details.
|
|
bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags)
|
|
bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags)
|
|
{
|
|
{
|
|
IM_ASSERT((flags & ~ImGuiHoveredFlags_AllowedMaskForIsWindowHovered) == 0 && "Invalid flags for IsWindowHovered()!");
|
|
IM_ASSERT((flags & ~ImGuiHoveredFlags_AllowedMaskForIsWindowHovered) == 0 && "Invalid flags for IsWindowHovered()!");
|