暂存一波 (#1)
Reviewed-on: http://www.tengenverse.com:3000/osticko/TG_ARPG/pulls/1
This commit is contained in:
18
Source/TG_ARPG/Private/TG_ControllerBase.cpp
Normal file
18
Source/TG_ARPG/Private/TG_ControllerBase.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "TG_ControllerBase.h"
|
||||
#include "Framework/Application/NavigationConfig.h"
|
||||
|
||||
void ATG_ControllerBase::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
if (IsLocalPlayerController())
|
||||
{
|
||||
auto navigation = MakeShared<FNavigationConfig>();
|
||||
navigation->bAnalogNavigation = false;
|
||||
navigation->bTabNavigation = false;
|
||||
FSlateApplication::Get().SetNavigationConfig(navigation);
|
||||
}
|
||||
}
|
||||
|
||||
18
Source/TG_ARPG/Public/TG_ControllerBase.h
Normal file
18
Source/TG_ARPG/Public/TG_ControllerBase.h
Normal file
@@ -0,0 +1,18 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/PlayerController.h"
|
||||
#include "TG_ControllerBase.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class TG_ARPG_API ATG_ControllerBase : public APlayerController
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
void BeginPlay();
|
||||
};
|
||||
@@ -9,5 +9,7 @@ public class TG_ARPG : ModuleRules
|
||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||
|
||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "EnhancedInput","GameplayAbilities", "GameplayTags", "GameplayTasks" });
|
||||
|
||||
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user