| 1336 | } |
| 1337 | |
| 1338 | void ImGuiIO::AddKeyModsEvent(ImGuiKeyModFlags modifiers) |
| 1339 | { |
| 1340 | ImGuiContext& g = *GImGui; |
| 1341 | IM_ASSERT(&g.IO == this && "Can only add events to current context."); |
| 1342 | |
| 1343 | ImGuiInputEvent e; |
| 1344 | e.Type = ImGuiInputEventType_KeyMods; |
| 1345 | e.Source = ImGuiInputSource_Keyboard; |
| 1346 | e.KeyMods.Mods = modifiers; |
| 1347 | g.InputEventsQueue.push_back(e); |
| 1348 | } |
| 1349 | |
| 1350 | // Queue a mouse move event |
| 1351 | void ImGuiIO::AddMousePosEvent(float x, float y) |
no test coverage detected