MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / GetModForModKey

Function GetModForModKey

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:8425–8436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8423//-----------------------------------------------------------------------------
8424
8425static ImGuiKeyChord GetModForModKey(ImGuiKey key)
8426{
8427 if (key == ImGuiKey_LeftCtrl || key == ImGuiKey_RightCtrl)
8428 return ImGuiMod_Ctrl;
8429 if (key == ImGuiKey_LeftShift || key == ImGuiKey_RightShift)
8430 return ImGuiMod_Shift;
8431 if (key == ImGuiKey_LeftAlt || key == ImGuiKey_RightAlt)
8432 return ImGuiMod_Alt;
8433 if (key == ImGuiKey_LeftSuper || key == ImGuiKey_RightSuper)
8434 return ImGuiMod_Super;
8435 return ImGuiMod_None;
8436}
8437
8438ImGuiKeyChord ImGui::FixupKeyChord(ImGuiKeyChord key_chord)
8439{

Callers 2

FixupKeyChordMethod · 0.85
GetKeyChordNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected