First commit

This commit is contained in:
2024-06-02 18:10:57 +02:00
parent 082c70e619
commit b541331d7d
180 changed files with 1552 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include "ProjectLighthousePlayerController.h"
#include "EnhancedInputSubsystems.h"
#include "Engine/LocalPlayer.h"
void AProjectLighthousePlayerController::BeginPlay()
{
Super::BeginPlay();
// get the enhanced input subsystem
if (UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(GetLocalPlayer()))
{
// add the mapping context so we get controls
Subsystem->AddMappingContext(InputMappingContext, 0);
}
}