File size: 1,154 Bytes
7fd553e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | // Copyright Epic Games, Inc. All Rights Reserved.
#include "LyraInputComponent.h"
#include "EnhancedInputSubsystems.h"
#include "Player/LyraLocalPlayer.h"
#include "Settings/LyraSettingsLocal.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(LyraInputComponent)
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();
}
|