MCPcopy Create free account
hub / github.com/RenderKit/embree / IsMouseDoubleClicked

Method IsMouseDoubleClicked

tutorials/common/imgui/imgui.cpp:8276–8281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8274}
8275
8276bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button)
8277{
8278 ImGuiContext& g = *GImGui;
8279 IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown));
8280 return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any);
8281}
8282
8283int ImGui::GetMouseClickedCount(ImGuiMouseButton button)
8284{

Callers

nothing calls this directly

Calls 1

MouseButtonToKeyFunction · 0.85

Tested by

no test coverage detected