25 lines
601 B
C++
25 lines
601 B
C++
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
||
|
|
||
|
#include "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);
|
||
|
}
|