MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / AddMouseSourceEvent

Method AddMouseSourceEvent

external/imgui/imgui.cpp:2009–2014  ·  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

2007// This is not a real event, the data is latched in order to be stored in actual Mouse events.
2008// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.
2009void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source)
2010{
2011 IM_ASSERT(Ctx != NULL);
2012 ImGuiContext& g = *Ctx;
2013 g.InputEventsNextMouseSource = source;
2014}
2015
2016void ImGuiIO::AddFocusEvent(bool focused)
2017{

Calls

no outgoing calls

Tested by

no test coverage detected