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

Method AddMouseSourceEvent

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:1727–1732  ·  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

1725// This is not a real event, the data is latched in order to be stored in actual Mouse events.
1726// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.
1727void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source)
1728{
1729 IM_ASSERT(Ctx != NULL);
1730 ImGuiContext& g = *Ctx;
1731 g.InputEventsNextMouseSource = source;
1732}
1733
1734void ImGuiIO::AddFocusEvent(bool focused)
1735{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected