2022-01-31 23:46:45 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "CommonInputActionDomain.h"
|
|
|
|
|
|
2022-09-28 01:06:15 -04:00
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(CommonInputActionDomain)
|
|
|
|
|
|
2022-02-25 11:01:17 -05:00
|
|
|
DEFINE_LOG_CATEGORY(LogUIActionDomain);
|
|
|
|
|
|
2022-01-31 23:46:45 -05:00
|
|
|
bool UCommonInputActionDomain::ShouldBreakInnerEventFlow(bool bInputEventHandled) const
|
|
|
|
|
{
|
|
|
|
|
switch (InnerBehavior)
|
|
|
|
|
{
|
|
|
|
|
case ECommonInputEventFlowBehavior::BlockIfActive:
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
case ECommonInputEventFlowBehavior::BlockIfHandled:
|
|
|
|
|
{
|
|
|
|
|
return bInputEventHandled;
|
|
|
|
|
}
|
|
|
|
|
case ECommonInputEventFlowBehavior::NeverBlock:
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool UCommonInputActionDomain::ShouldBreakEventFlow(bool bDomainHadActiveRoots, bool bInputEventHandledAtLeastOnce) const
|
|
|
|
|
{
|
|
|
|
|
switch (Behavior)
|
|
|
|
|
{
|
|
|
|
|
case ECommonInputEventFlowBehavior::BlockIfActive:
|
|
|
|
|
{
|
|
|
|
|
return bDomainHadActiveRoots;
|
|
|
|
|
}
|
|
|
|
|
case ECommonInputEventFlowBehavior::BlockIfHandled:
|
|
|
|
|
{
|
|
|
|
|
return bInputEventHandledAtLeastOnce;
|
|
|
|
|
}
|
|
|
|
|
case ECommonInputEventFlowBehavior::NeverBlock:
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
2022-02-24 19:08:09 -05:00
|
|
|
}
|
2022-09-28 01:06:15 -04:00
|
|
|
|