MCPcopy Create free account
hub / github.com/cinder/Cinder / GetMergedModsFromKeys

Function GetMergedModsFromKeys

src/imgui/imgui.cpp:9905–9913  ·  view source on GitHub ↗

[Internal] Do not use directly

Source from the content-addressed store, hash-verified

9903
9904// [Internal] Do not use directly
9905static ImGuiKeyChord GetMergedModsFromKeys()
9906{
9907 ImGuiKeyChord mods = 0;
9908 if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { mods |= ImGuiMod_Ctrl; }
9909 if (ImGui::IsKeyDown(ImGuiMod_Shift)) { mods |= ImGuiMod_Shift; }
9910 if (ImGui::IsKeyDown(ImGuiMod_Alt)) { mods |= ImGuiMod_Alt; }
9911 if (ImGui::IsKeyDown(ImGuiMod_Super)) { mods |= ImGuiMod_Super; }
9912 return mods;
9913}
9914
9915static void ImGui::UpdateKeyboardInputs()
9916{

Callers 3

UpdateKeyboardInputsMethod · 0.85
UpdateInputEventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected