MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / AddMouseSourceEvent

Method AddMouseSourceEvent

KBotExt/imgui/imgui.cpp:1577–1582  ·  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

1575// This is not a real event, the data is latched in order to be stored in actual Mouse events.
1576// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.
1577void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source)
1578{
1579 IM_ASSERT(Ctx != NULL);
1580 ImGuiContext& g = *Ctx;
1581 g.InputEventsNextMouseSource = source;
1582}
1583
1584void ImGuiIO::AddFocusEvent(bool focused)
1585{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected