MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / IsNamedKeyOrModKey

Function IsNamedKeyOrModKey

KBotExt/imgui/imgui_internal.h:2960–2960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2958 // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
2959 inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; }
2960 inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super || key == ImGuiMod_Shortcut; }
2961 inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; }
2962 inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; }
2963 inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; }

Callers 5

AddKeyAnalogEventMethod · 0.85
GetKeyNameMethod · 0.85
GetKeyOwnerMethod · 0.85
TestKeyOwnerMethod · 0.85
SetKeyOwnerMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestKeyOwnerMethod · 0.68