From c260a3d824f337f5e295bd99638fd809c1095a42 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 24 Jan 2018 22:58:02 +0000 Subject: [PATCH] Fixed missing inline keywords causing errors in non-unity or adaptive-unity builds. --- Source/ImGui/Private/ImGuiInteroperability.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/ImGui/Private/ImGuiInteroperability.h b/Source/ImGui/Private/ImGuiInteroperability.h index c7657aa..7cf1578 100644 --- a/Source/ImGui/Private/ImGuiInteroperability.h +++ b/Source/ImGui/Private/ImGuiInteroperability.h @@ -38,13 +38,19 @@ namespace ImGuiInterops uint32 GetKeyIndex(const FKey& Key); // Map key event to index in keys buffer. - uint32 GetKeyIndex(const FKeyEvent& KeyEvent) { return KeyEvent.GetKeyCode(); } + FORCEINLINE uint32 GetKeyIndex(const FKeyEvent& KeyEvent) + { + return KeyEvent.GetKeyCode(); + } // Map mouse FKey to index in mouse buttons buffer. uint32 GetMouseIndex(const FKey& MouseButton); // Map pointer event to index in mouse buttons buffer. - uint32 GetMouseIndex(const FPointerEvent& MouseEvent) { return GetMouseIndex(MouseEvent.GetEffectingButton()); } + FORCEINLINE uint32 GetMouseIndex(const FPointerEvent& MouseEvent) + { + return GetMouseIndex(MouseEvent.GetEffectingButton()); + } //====================================================================================================