| 8269 | } |
| 8270 | |
| 8271 | bool 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 | |
| 8278 | bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) |
| 8279 | { |
nothing calls this directly
no test coverage detected