:(
This commit is contained in:
5
Source/Aura/Private/Input/AuraInputComponent.cpp
Normal file
5
Source/Aura/Private/Input/AuraInputComponent.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright Echo Devgroup
|
||||
|
||||
|
||||
#include "Input/AuraInputComponent.h"
|
||||
|
||||
24
Source/Aura/Private/Input/AuraInputConfig.cpp
Normal file
24
Source/Aura/Private/Input/AuraInputConfig.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright Echo Devgroup
|
||||
|
||||
|
||||
#include "Input/AuraInputConfig.h"
|
||||
|
||||
#include "InputAction.h"
|
||||
|
||||
const UInputAction* UAuraInputConfig::FindAbilityInputActionForTag(const FGameplayTag& InputTag,
|
||||
bool bLogNotFound) const
|
||||
{
|
||||
for (const FAuraInputAction& Action : AbilityInputActions)
|
||||
{
|
||||
if (Action.InputAction && Action.InputTag == InputTag)
|
||||
{
|
||||
return Action.InputAction;
|
||||
}
|
||||
}
|
||||
|
||||
if (bLogNotFound)
|
||||
{
|
||||
UE_LOG(LogTemp, Error, TEXT("Can't find AbilityInputAction for InputTag [%s], on InputConfig [%s]"), *InputTag.ToString(), *GetName());
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user