MCPcopy Create free account
hub / github.com/degeneratehyperbola/NEPS / GetMergedKeyModFlags

Method GetMergedKeyModFlags

shared_lib/imgui/imgui.cpp:3873–3882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3871}
3872
3873ImGuiKeyModFlags ImGui::GetMergedKeyModFlags()
3874{
3875 ImGuiContext& g = *GImGui;
3876 ImGuiKeyModFlags key_mod_flags = ImGuiKeyModFlags_None;
3877 if (g.IO.KeyCtrl) { key_mod_flags |= ImGuiKeyModFlags_Ctrl; }
3878 if (g.IO.KeyShift) { key_mod_flags |= ImGuiKeyModFlags_Shift; }
3879 if (g.IO.KeyAlt) { key_mod_flags |= ImGuiKeyModFlags_Alt; }
3880 if (g.IO.KeySuper) { key_mod_flags |= ImGuiKeyModFlags_Super; }
3881 return key_mod_flags;
3882}
3883
3884void ImGui::NewFrame()
3885{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected