Files
UnrealEngineUWP/Engine/Plugins/Experimental/CommonUI/Source/CommonInput/Private/CommonInputActionDomain.cpp
jc authier 3404ed9305 Common Input:
- Remove default action domain

[REVIEW] [at]prajwal.manjunath

#ROBOMERGE-AUTHOR: jc.authier
#ROBOMERGE-SOURCE: CL 19123872 via CL 19125248 via CL 19125462 via CL 19125620 via CL 19133527
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19155505 by jc authier in ue5-main branch]
2022-02-25 15:42:46 -05:00

48 lines
953 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "CommonInputActionDomain.h"
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;
}