5#include "Engine/DeveloperSettings.h"
6#include "Runtime/Engine/Classes/Curves/RichCurve.h"
7#include "Runtime/Engine/Classes/Curves/CurveFloat.h"
9#include "GameGlobals.generated.h"
16UCLASS(config=Game, defaultconfig)
23 UGameGlobals(
const FObjectInitializer& ObjectInitializer);
27 return AnalogCursorAccelerationCurve.GetRichCurveConst();
32 return MaxAnalogCursorSpeed;
37 return MaxAnalogCursorSpeedWhenHovered;
42 return FMath::Min<float>(AnalogCursorDragCoefficientWhenHovered, AnalogCursorDragCoefficient);
47 return FMath::Max<float>(AnalogCursorDragCoefficientWhenHovered, AnalogCursorDragCoefficient);
52 return MinAnalogCursorSpeed;
57 return AnalogCursorAccelerationMultiplier;
62 return AnalogCursorDeadZone;
67 return FMath::Max<float>(AnalogCursorSize, 1.0f);
72 return FVector2D(GetAnalogCursorSize(), GetAnalogCursorSize());
77 return GetAnalogCursorSize() / 2.0f;
82 return bUseEngineAnalogCursor;
87 return bAnalogCursorNoAcceleration;
101 UPROPERTY(config, EditAnywhere, Category =
"Analog Cursor", meta=(
102 XAxisName=
"Strength",
103 YAxisName=
"Acceleration" ))
104 FRuntimeFloatCurve AnalogCursorAccelerationCurve;
107 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "1.0"))
108 float MaxAnalogCursorSpeed;
111 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "1.0"))
112 float MaxAnalogCursorSpeedWhenHovered;
115 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "0.0"))
116 float AnalogCursorDragCoefficient;
119 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "0.0"))
120 float AnalogCursorDragCoefficientWhenHovered;
123 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "0.0"))
124 float MinAnalogCursorSpeed;
127 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "0.0", ClampMax = "1.0"))
128 float AnalogCursorDeadZone;
131 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "1.0"))
132 float AnalogCursorAccelerationMultiplier;
135 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor", meta = (ClampMin = "1.0", ClampMax = "128.0"))
136 float AnalogCursorSize;
139 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor")
140 bool bUseEngineAnalogCursor;
143 UPROPERTY(config, EditAnywhere, Category = "Analog Cursor")
144 bool bAnalogCursorNoAcceleration;
Definition: GameAnalogCursor.h:10
static TSharedPtr< FGameAnalogCursor > AnalogCursor
Definition: GameAnalogCursor.h:20
Definition: GameGlobals.h:18
FORCEINLINE bool GetAnalogCursorNoAcceleration() const
Definition: GameGlobals.h:85
FORCEINLINE float GetAnalogCursorSize() const
Definition: GameGlobals.h:65
FORCEINLINE float GetAnalogCursorDragCoefficient() const
Definition: GameGlobals.h:40
FORCEINLINE float GetAnalogCursorDeadZone() const
Definition: GameGlobals.h:60
FORCEINLINE float GetMaxAnalogCursorSpeedWhenHovered() const
Definition: GameGlobals.h:35
FORCEINLINE float GetMaxAnalogCursorSpeed() const
Definition: GameGlobals.h:30
FORCEINLINE void SetAnalogCursor(TSharedPtr< FGameAnalogCursor > InAnalogCursor)
Definition: GameGlobals.h:90
FORCEINLINE const FRichCurve * GetAnalogCursorAccelerationCurve() const
Definition: GameGlobals.h:25
FORCEINLINE float GetAnalogCursorAccelerationMultiplier() const
Definition: GameGlobals.h:55
FORCEINLINE TSharedPtr< FGameAnalogCursor > GetAnalogCursor() const
Definition: GameGlobals.h:95
FORCEINLINE FVector2D GetAnalogCursorSizeVector() const
Definition: GameGlobals.h:70
FORCEINLINE float GetMinAnalogCursorSpeed() const
Definition: GameGlobals.h:50
FORCEINLINE float GetAnalogCursorRadius() const
Definition: GameGlobals.h:75
FORCEINLINE bool GetUseEngineAnalogCursor() const
Definition: GameGlobals.h:80
FORCEINLINE float GetAnalogCursorDragCoefficientWhenHovered() const
Definition: GameGlobals.h:45