MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ClearInputMouse

Method ClearInputMouse

Source/3rdParty/imgui/imgui.cpp:1777–1793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

UpdateInputEventsMethod · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected