RealtimeStyleTransferRuntime/Source/LyraGame/Input/LyraAimSensitivityData.h

29 lines
967 B
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
2022-09-13 07:18:28 +00:00
#include "Containers/Map.h"
2022-05-23 18:41:30 +00:00
#include "Engine/DataAsset.h"
#include "Settings/LyraSettingsShared.h"
2022-09-13 07:18:28 +00:00
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraAimSensitivityData.generated.h"
2022-09-13 07:18:28 +00:00
class UObject;
2022-05-23 18:41:30 +00:00
/** 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;
};