MCPcopy Create free account
hub / github.com/cinder/Cinder / IsMouseDown

Method IsMouseDown

src/imgui/imgui.cpp:9681–9686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9679}
9680
9681bool ImGui::IsMouseDown(ImGuiMouseButton button)
9682{
9683 ImGuiContext& g = *GImGui;
9684 IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown));
9685 return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array.
9686}
9687
9688bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id)
9689{

Callers

nothing calls this directly

Calls 1

MouseButtonToKeyFunction · 0.85

Tested by

no test coverage detected