MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetMergedModsFromKeys

Function GetMergedModsFromKeys

3rdparty/imgui/src/imgui.cpp:10142–10151  ·  view source on GitHub ↗

[Internal] Do not use directly

Source from the content-addressed store, hash-verified

10140
10141// [Internal] Do not use directly
10142static ImGuiKeyChord GetMergedModsFromKeys()
10143{
10144 // Bypass IsKeyDown() for the unlikely case where user used a ImGuiInputFlags_LockXXXX on those.
10145 ImGuiKeyChord mods = 0;
10146 if (ImGui::GetKeyData(ImGuiMod_Ctrl)->Down) { mods |= ImGuiMod_Ctrl; }
10147 if (ImGui::GetKeyData(ImGuiMod_Shift)->Down) { mods |= ImGuiMod_Shift; }
10148 if (ImGui::GetKeyData(ImGuiMod_Alt)->Down) { mods |= ImGuiMod_Alt; }
10149 if (ImGui::GetKeyData(ImGuiMod_Super)->Down) { mods |= ImGuiMod_Super; }
10150 return mods;
10151}
10152
10153static void ImGui::UpdateKeyboardInputs()
10154{

Callers 3

UpdateKeyboardInputsMethod · 0.85
UpdateInputEventsMethod · 0.85

Calls 1

GetKeyDataFunction · 0.85

Tested by

no test coverage detected