mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-03 14:18:46 +00:00
fix build error
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
|
||||
#include "CogImguiHelper.h"
|
||||
#include "CogInputDataAsset.h"
|
||||
#include "CogWindowWidgets.h"
|
||||
#include "Engine/LocalPlayer.h"
|
||||
#include "EnhancedInputSubsystems.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "InputMappingContext.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
UCogInputWindow_Gamepad::UCogInputWindow_Gamepad()
|
||||
|
||||
@@ -17,7 +17,9 @@ public:
|
||||
|
||||
UCogInputWindow_Actions();
|
||||
|
||||
TWeakObjectPtr<const UCogInputDataAsset> Asset;
|
||||
const UCogInputDataAsset* GetAsset() const { return Asset.Get(); }
|
||||
|
||||
void SetAsset(const UCogInputDataAsset* Value) { Asset = Value; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -37,5 +39,8 @@ private:
|
||||
UPROPERTY(Config)
|
||||
float RepeatTime = 0.0f;
|
||||
|
||||
UPROPERTY()
|
||||
TWeakObjectPtr<const UCogInputDataAsset> Asset = nullptr;
|
||||
|
||||
TArray<FCogInjectActionInfo> Actions;
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "CogInjectActionInfo.h"
|
||||
#include "CogWindow.h"
|
||||
#include "CogInputWindow_Gamepad.generated.h"
|
||||
|
||||
@@ -17,7 +18,9 @@ public:
|
||||
|
||||
UCogInputWindow_Gamepad();
|
||||
|
||||
TWeakObjectPtr<const UCogInputDataAsset> Asset;
|
||||
const UCogInputDataAsset* GetAsset() const { return Asset.Get(); }
|
||||
|
||||
void SetAsset(const UCogInputDataAsset* Value) { Asset = Value; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -66,6 +69,9 @@ private:
|
||||
UPROPERTY(Config)
|
||||
float Border = 0.02f;
|
||||
|
||||
UPROPERTY()
|
||||
TWeakObjectPtr<const UCogInputDataAsset> Asset;
|
||||
|
||||
TMap<FKey, FCogInjectActionInfo> Actions;
|
||||
|
||||
UEnhancedPlayerInput* Input = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user