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

Function ConvertSingleModFlagToKey

include/imgui/imgui_internal.h:3335–3342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3333 inline bool IsLRModKey(ImGuiKey key) { return key >= ImGuiKey_LeftCtrl && key <= ImGuiKey_RightSuper; }
3334 ImGuiKeyChord FixupKeyChord(ImGuiKeyChord key_chord);
3335 inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key)
3336 {
3337 if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl;
3338 if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift;
3339 if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt;
3340 if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper;
3341 return key;
3342 }
3343
3344 IMGUI_API ImGuiKeyData* GetKeyData(ImGuiContext* ctx, ImGuiKey key);
3345 inline ImGuiKeyData* GetKeyData(ImGuiKey key) { ImGuiContext& g = *GImGui; return GetKeyData(&g, key); }

Callers 6

GetKeyDataMethod · 0.85
GetKeyNameMethod · 0.85
SetShortcutRoutingMethod · 0.85
IsKeyChordPressedMethod · 0.85
GetKeyOwnerDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected