First commit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user