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

Method ClearInputMouse

include/imgui/imgui.cpp:1798–1814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1796}
1797
1798void ImGuiIO::ClearInputMouse()
1799{
1800 for (ImGuiKey key = ImGuiKey_Mouse_BEGIN; key < ImGuiKey_Mouse_END; key = (ImGuiKey)(key + 1))
1801 {
1802 ImGuiKeyData* key_data = &KeysData[key - ImGuiKey_NamedKey_BEGIN];
1803 key_data->Down = false;
1804 key_data->DownDuration = -1.0f;
1805 key_data->DownDurationPrev = -1.0f;
1806 }
1807 MousePos = ImVec2(-FLT_MAX, -FLT_MAX);
1808 for (int n = 0; n < IM_COUNTOF(MouseDown); n++)
1809 {
1810 MouseDown[n] = false;
1811 MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f;
1812 }
1813 MouseWheel = MouseWheelH = 0.0f;
1814}
1815
1816static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1)
1817{

Callers 1

UpdateInputEventsMethod · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected