MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / IsMouseDown

Method IsMouseDown

KBotExt/imgui/imgui.cpp:8271–8276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8269}
8270
8271bool ImGui::IsMouseDown(ImGuiMouseButton button)
8272{
8273 ImGuiContext& g = *GImGui;
8274 IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown));
8275 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.
8276}
8277
8278bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id)
8279{

Callers

nothing calls this directly

Calls 1

MouseButtonToKeyFunction · 0.85

Tested by

no test coverage detected