mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-24 05:19:02 +08:00
Demo: Added display for IsMouseDragging() function.
This commit is contained in:
parent
94bf12f14b
commit
abe5ad3c7a
@ -1810,6 +1810,8 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|||||||
if (ImGui::TreeNode("Dragging"))
|
if (ImGui::TreeNode("Dragging"))
|
||||||
{
|
{
|
||||||
ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) 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.");
|
||||||
|
for (int button = 0; button < 3; button++)
|
||||||
|
ImGui::Text("IsMouseDragging(%d) = %d", button, ImGui::IsMouseDragging(button));
|
||||||
ImGui::Button("Drag Me");
|
ImGui::Button("Drag Me");
|
||||||
if (ImGui::IsItemActive())
|
if (ImGui::IsItemActive())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user