You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- 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]
48 lines
953 B
C++
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;
|
|
}
|