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

Function MouseButtonToKey

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

Source from the content-addressed store, hash-verified

3345 inline ImGuiKeyData* GetKeyData(ImGuiKey key) { ImGuiContext& g = *GImGui; return GetKeyData(&g, key); }
3346 IMGUI_API const char* GetKeyChordName(ImGuiKeyChord key_chord);
3347 inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); }
3348 IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f);
3349 IMGUI_API ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down);
3350 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