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 "CommonInputBaseTypes.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
#include "Input/CommonBoundActionButton.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "Templates/SubclassOf.h"
|
|
|
|
#include "UObject/UObjectGlobals.h"
|
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
#include "LyraBoundActionButton.generated.h"
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
class UCommonButtonStyle;
|
|
|
|
class UObject;
|
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
UCLASS(Abstract, meta = (DisableNativeTick))
|
|
|
|
class LYRAGAME_API ULyraBoundActionButton : public UCommonBoundActionButton
|
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void NativeConstruct() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void HandleInputMethodChanged(ECommonInputType NewInputMethod);
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, Category = "Styles")
|
|
|
|
TSubclassOf<UCommonButtonStyle> KeyboardStyle;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, Category = "Styles")
|
|
|
|
TSubclassOf<UCommonButtonStyle> GamepadStyle;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, Category = "Styles")
|
|
|
|
TSubclassOf<UCommonButtonStyle> TouchStyle;
|
|
|
|
};
|