MCPcopy Create free account
hub / github.com/Raais/ImStudio / GetMergedKeyModFlags

Method GetMergedKeyModFlags

src/third-party/imgui/imgui.cpp:4209–4218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4207}
4208
4209ImGuiKeyModFlags ImGui::GetMergedKeyModFlags()
4210{
4211 ImGuiContext& g = *GImGui;
4212 ImGuiKeyModFlags key_mod_flags = ImGuiKeyModFlags_None;
4213 if (g.IO.KeyCtrl) { key_mod_flags |= ImGuiKeyModFlags_Ctrl; }
4214 if (g.IO.KeyShift) { key_mod_flags |= ImGuiKeyModFlags_Shift; }
4215 if (g.IO.KeyAlt) { key_mod_flags |= ImGuiKeyModFlags_Alt; }
4216 if (g.IO.KeySuper) { key_mod_flags |= ImGuiKeyModFlags_Super; }
4217 return key_mod_flags;
4218}
4219
4220void ImGui::NewFrame()
4221{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected