Download LyraStarterGame/Source/LyraGame/Input/LyraInputConfig.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Input/LyraInputConfig.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Input/LyraInputConfig.cpp
-
curl -L -o LyraInputConfig.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Input/LyraInputConfig.cpp
1.26 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| ULyraInputConfig::ULyraInputConfig(const FObjectInitializer& ObjectInitializer) | |
| { | |
| } | |
| const UInputAction* ULyraInputConfig::FindNativeInputActionForTag(const FGameplayTag& InputTag, bool bLogNotFound) const | |
| { | |
| for (const FLyraInputAction& Action : NativeInputActions) | |
| { | |
| if (Action.InputAction && (Action.InputTag == InputTag)) | |
| { | |
| return Action.InputAction; | |
| } | |
| } | |
| if (bLogNotFound) | |
| { | |
| UE_LOG(LogLyra, Error, TEXT("Can't find NativeInputAction for InputTag [%s] on InputConfig [%s]."), *InputTag.ToString(), *GetNameSafe(this)); | |
| } | |
| return nullptr; | |
| } | |
| const UInputAction* ULyraInputConfig::FindAbilityInputActionForTag(const FGameplayTag& InputTag, bool bLogNotFound) const | |
| { | |
| for (const FLyraInputAction& Action : AbilityInputActions) | |
| { | |
| if (Action.InputAction && (Action.InputTag == InputTag)) | |
| { | |
| return Action.InputAction; | |
| } | |
| } | |
| if (bLogNotFound) | |
| { | |
| UE_LOG(LogLyra, Error, TEXT("Can't find AbilityInputAction for InputTag [%s] on InputConfig [%s]."), *InputTag.ToString(), *GetNameSafe(this)); | |
| } | |
| return nullptr; | |
| } | |