continuing to try to fix

This commit is contained in:
2025-11-20 22:33:43 -05:00
parent 2d860b2a53
commit 84f62de157
7 changed files with 11 additions and 3 deletions

View File

@@ -17,11 +17,12 @@ ADDIPlayerController::ADDIPlayerController()
void ADDIPlayerController::SetupInputComponent()
{
Super::SetupInputComponent();
if (UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(GetLocalPlayer()))
{
for (UInputMappingContext* CurrentContext : DefaultMappingContexts)
{
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Cyan, "Controller Setup Character");
Subsystem->AddMappingContext(CurrentContext, 0);
}
}
@@ -30,7 +31,7 @@ void ADDIPlayerController::SetupInputComponent()
void ADDIPlayerController::BeginPlay()
{
Super::BeginPlay();
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Green, this->GetName());
// WeaponUI = CreateWidget<UDDIWeaponUI>(this, WeaponUIClass);
// WeaponUI->AddToPlayerScreen(0);
}