mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 08:20:32 +00:00
Fixed missing inline keywords causing errors in non-unity or adaptive-unity builds.
This commit is contained in:
parent
f40efc265f
commit
c260a3d824
@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//====================================================================================================
|
//====================================================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user