mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-21 14:55:36 +00:00
DragDrop: Added IsDragDropActive() helper which is useful for binding to decide how to handle mouse inputs.
This commit is contained in:
@@ -11478,6 +11478,12 @@ void ImGui::EndDragDropTarget()
|
||||
IM_ASSERT(g.DragDropActive);
|
||||
}
|
||||
|
||||
bool ImGui::IsDragDropActive()
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
return g.DragDropActive;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// PLATFORM DEPENDENT HELPERS
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user