LuckyWorldV2/Source/Luckyrobots/Private/Lobby/LobbyPlayerController.cpp
martinluckyrobots 5d8e225db5 Fix Folder Structure
2025-04-07 10:28:47 +08:00

25 lines
607 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "Lobby/LobbyPlayerController.h"
void ALobbyPlayerController::BeginPlay()
{
Super::BeginPlay();
Init();
}
void ALobbyPlayerController::SetupInputComponent()
{
Super::SetupInputComponent();
InputComponent->BindAction("LobbyInit", IE_Pressed, this, &ALobbyPlayerController::Init).bConsumeInput = false;
InputComponent->BindAction("LobbyInit", IE_Released, this, &ALobbyPlayerController::Init).bConsumeInput = false;
}
void ALobbyPlayerController::Init()
{
bShowMouseCursor = true;
SetIgnoreMoveInput(true);
}