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.
| 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. |
| 2009 | void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source) |
| 2010 | { |
| 2011 | IM_ASSERT(Ctx != NULL); |
| 2012 | ImGuiContext& g = *Ctx; |
| 2013 | g.InputEventsNextMouseSource = source; |
| 2014 | } |
| 2015 | |
| 2016 | void ImGuiIO::AddFocusEvent(bool focused) |
| 2017 | { |
no outgoing calls
no test coverage detected