RealtimeStyleTransferRuntime/Source/LyraGame/Input/LyraAimSensitivityData.h

26 lines
909 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "Settings/LyraSettingsShared.h"
#include "LyraAimSensitivityData.generated.h"
/** Defines a set of gamepad sensitivity to a float value. */
UCLASS(BlueprintType, Const, Meta = (DisplayName = "Lyra Aim Sensitivity Data", ShortTooltip = "Data asset used to define a map of Gamepad Sensitivty to a float value."))
class LYRAGAME_API ULyraAimSensitivityData : public UPrimaryDataAsset
{
GENERATED_BODY()
public:
ULyraAimSensitivityData(const FObjectInitializer& ObjectInitializer);
const float SensitivtyEnumToFloat(const ELyraGamepadSensitivity InSensitivity) const;
protected:
/** Map of SensitivityMap settings to their corresponding float */
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TMap<ELyraGamepadSensitivity, float> SensitivityMap;
};