MCPcopy Create free account
hub / github.com/RenderKit/embree / GetMergedModsFromBools

Function GetMergedModsFromBools

tutorials/common/imgui/imgui.cpp:4161–4170  ·  view source on GitHub ↗

[Internal] Do not use directly (should read io.KeyMods instead)

Source from the content-addressed store, hash-verified

4159
4160// [Internal] Do not use directly (should read io.KeyMods instead)
4161static ImGuiKeyChord GetMergedModsFromBools()
4162{
4163 ImGuiContext& g = *GImGui;
4164 ImGuiKeyChord key_chord = 0;
4165 if (g.IO.KeyCtrl) { key_chord |= ImGuiMod_Ctrl; }
4166 if (g.IO.KeyShift) { key_chord |= ImGuiMod_Shift; }
4167 if (g.IO.KeyAlt) { key_chord |= ImGuiMod_Alt; }
4168 if (g.IO.KeySuper) { key_chord |= ImGuiMod_Super; }
4169 return key_chord;
4170}
4171
4172static void ImGui::UpdateKeyboardInputs()
4173{

Callers 3

UpdateKeyboardInputsMethod · 0.85
UpdateInputEventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected