MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / AddKeyModsEvent

Method AddKeyModsEvent

engine/3rdparty/imgui/imgui.cpp:1338–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1336}
1337
1338void 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
1351void ImGuiIO::AddMousePosEvent(float x, float y)

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected