MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ClearInputMouse

Method ClearInputMouse

imgui_tiny_app/imgui/imgui.cpp:1818–1834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816}
1817
1818void ImGuiIO::ClearInputMouse()
1819{
1820 for (ImGuiKey key = ImGuiKey_Mouse_BEGIN; key < ImGuiKey_Mouse_END; key = (ImGuiKey)(key + 1))
1821 {
1822 ImGuiKeyData* key_data = &KeysData[key - ImGuiKey_NamedKey_BEGIN];
1823 key_data->Down = false;
1824 key_data->DownDuration = -1.0f;
1825 key_data->DownDurationPrev = -1.0f;
1826 }
1827 MousePos = ImVec2(-FLT_MAX, -FLT_MAX);
1828 for (int n = 0; n < IM_COUNTOF(MouseDown); n++)
1829 {
1830 MouseDown[n] = false;
1831 MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f;
1832 }
1833 MouseWheel = MouseWheelH = 0.0f;
1834}
1835
1836static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1)
1837{

Callers 1

UpdateInputEventsMethod · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected