MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / GetMergedModsFromKeys

Function GetMergedModsFromKeys

extern/imgui/imgui.cpp:4334–4342  ·  view source on GitHub ↗

[Internal] Do not use directly

Source from the content-addressed store, hash-verified

4332
4333// [Internal] Do not use directly
4334static ImGuiKeyChord GetMergedModsFromKeys()
4335{
4336 ImGuiKeyChord mods = 0;
4337 if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { mods |= ImGuiMod_Ctrl; }
4338 if (ImGui::IsKeyDown(ImGuiMod_Shift)) { mods |= ImGuiMod_Shift; }
4339 if (ImGui::IsKeyDown(ImGuiMod_Alt)) { mods |= ImGuiMod_Alt; }
4340 if (ImGui::IsKeyDown(ImGuiMod_Super)) { mods |= ImGuiMod_Super; }
4341 return mods;
4342}
4343
4344static void ImGui::UpdateKeyboardInputs()
4345{

Callers 2

UpdateKeyboardInputsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected