MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetMergedModsFromKeys

Function GetMergedModsFromKeys

KBotExt/imgui/imgui.cpp:8464–8472  ·  view source on GitHub ↗

[Internal] Do not use directly

Source from the content-addressed store, hash-verified

8462
8463// [Internal] Do not use directly
8464static ImGuiKeyChord GetMergedModsFromKeys()
8465{
8466 ImGuiKeyChord mods = 0;
8467 if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { mods |= ImGuiMod_Ctrl; }
8468 if (ImGui::IsKeyDown(ImGuiMod_Shift)) { mods |= ImGuiMod_Shift; }
8469 if (ImGui::IsKeyDown(ImGuiMod_Alt)) { mods |= ImGuiMod_Alt; }
8470 if (ImGui::IsKeyDown(ImGuiMod_Super)) { mods |= ImGuiMod_Super; }
8471 return mods;
8472}
8473
8474static void ImGui::UpdateKeyboardInputs()
8475{

Callers 2

UpdateKeyboardInputsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected