You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-163710 #rb trivial #preflight 645015d1de57652122c040be [CL 25309525 by daren cheng in ue5-main branch]
51 lines
1021 B
C++
51 lines
1021 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "CommonInputActionDomain.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(CommonInputActionDomain)
|
|
|
|
DEFINE_LOG_CATEGORY(LogUIActionDomain);
|
|
|
|
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;
|
|
}
|
|
|