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

Function MouseButtonToKey

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

Source from the content-addressed store, hash-verified

2979 inline ImGuiKeyData* GetKeyData(ImGuiKey key) { ImGuiContext& g = *GImGui; return GetKeyData(&g, key); }
2980 IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size);
2981 inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); }
2982 IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f);
2983 IMGUI_API ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down);
2984 IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis);

Callers 6

IsMouseDownMethod · 0.85
IsMouseClickedMethod · 0.85
IsMouseReleasedMethod · 0.85
IsMouseDoubleClickedMethod · 0.85
UpdateKeyboardInputsMethod · 0.85
ButtonBehaviorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected