Fixed missing inline keywords causing errors in non-unity or adaptive-unity builds.

This commit is contained in:
Sebastian 2018-01-24 22:58:02 +00:00
parent f40efc265f
commit c260a3d824

View File

@ -38,13 +38,19 @@ namespace ImGuiInterops
uint32 GetKeyIndex(const FKey& Key); uint32 GetKeyIndex(const FKey& Key);
// Map key event to index in keys buffer. // 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. // Map mouse FKey to index in mouse buttons buffer.
uint32 GetMouseIndex(const FKey& MouseButton); uint32 GetMouseIndex(const FKey& MouseButton);
// Map pointer event to index in mouse buttons buffer. // 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());
}
//==================================================================================================== //====================================================================================================