MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / ClearInputMouse

Method ClearInputMouse

include/imgui/imgui.cpp:1772–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770}
1771
1772void ImGuiIO::ClearInputMouse()
1773{
1774 for (ImGuiKey key = ImGuiKey_Mouse_BEGIN; key < ImGuiKey_Mouse_END; key = (ImGuiKey)(key + 1))
1775 {
1776 ImGuiKeyData* key_data = &KeysData[key - ImGuiKey_NamedKey_BEGIN];
1777 key_data->Down = false;
1778 key_data->DownDuration = -1.0f;
1779 key_data->DownDurationPrev = -1.0f;
1780 }
1781 MousePos = ImVec2(-FLT_MAX, -FLT_MAX);
1782 for (int n = 0; n < IM_COUNTOF(MouseDown); n++)
1783 {
1784 MouseDown[n] = false;
1785 MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f;
1786 }
1787 MouseWheel = MouseWheelH = 0.0f;
1788}
1789
1790static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1)
1791{

Callers 1

UpdateInputEventsMethod · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected