Download LyraStarterGame/Source/LyraGame/Input/LyraInputComponent.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Input/LyraInputComponent.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Input/LyraInputComponent.cpp
-
curl -L -o LyraInputComponent.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Input/LyraInputComponent.cpp
1.15 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class ULyraInputConfig; | |
| ULyraInputComponent::ULyraInputComponent(const FObjectInitializer& ObjectInitializer) | |
| { | |
| } | |
| void ULyraInputComponent::AddInputMappings(const ULyraInputConfig* InputConfig, UEnhancedInputLocalPlayerSubsystem* InputSubsystem) const | |
| { | |
| check(InputConfig); | |
| check(InputSubsystem); | |
| // Here you can handle any custom logic to add something from your input config if required | |
| } | |
| void ULyraInputComponent::RemoveInputMappings(const ULyraInputConfig* InputConfig, UEnhancedInputLocalPlayerSubsystem* InputSubsystem) const | |
| { | |
| check(InputConfig); | |
| check(InputSubsystem); | |
| // Here you can handle any custom logic to remove input mappings that you may have added above | |
| } | |
| void ULyraInputComponent::RemoveBinds(TArray<uint32>& BindHandles) | |
| { | |
| for (uint32 Handle : BindHandles) | |
| { | |
| RemoveBindingByHandle(Handle); | |
| } | |
| BindHandles.Reset(); | |
| } | |