MCPcopy Create free account
hub / github.com/RenderKit/embree / MouseButtonToKey

Function MouseButtonToKey

tutorials/common/imgui/imgui_internal.h:2881–2881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2879 IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key);
2880 IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size);
2881 inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); }
2882 IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f);
2883 IMGUI_API ImVec2 GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down);
2884 IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis);

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected