MCPcopy Create free account
hub / github.com/SatDump/SatDump / AddMouseSourceEvent

Method AddMouseSourceEvent

src-core/imgui/imgui.cpp:1596–1601  ·  view source on GitHub ↗

This is not a real event, the data is latched in order to be stored in actual Mouse events. This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.

Source from the content-addressed store, hash-verified

1594// This is not a real event, the data is latched in order to be stored in actual Mouse events.
1595// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.
1596void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source)
1597{
1598 IM_ASSERT(Ctx != NULL);
1599 ImGuiContext& g = *Ctx;
1600 g.InputEventsNextMouseSource = source;
1601}
1602
1603void ImGuiIO::AddFocusEvent(bool focused)
1604{

Callers 2

ImGui_ImplGlfw_WndProcFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected