From 6fa3aaf7c00538c508578295f37801a49edbeb77 Mon Sep 17 00:00:00 2001 From: James Fulop Date: Sun, 16 Oct 2016 12:21:38 -0400 Subject: [PATCH] outdated dragging API mentioned in demo text Looks like you changed the API on dragging, but did not update the description text for it. https://github.com/ocornut/imgui/issues/167 --- imgui_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index e2ede9bd..544d6230 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1542,7 +1542,7 @@ void ImGui::ShowTestWindow(bool* p_open) if (ImGui::TreeNode("Dragging")) { - ImGui::TextWrapped("You can use ImGui::GetItemActiveDragDelta() to query for the dragged amount on any widget."); + ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget."); ImGui::Button("Drag Me"); if (ImGui::IsItemActive()) {