You've already forked LuckyWorld
Luckyrobots->LuckyRobots
This commit is contained in:
25
Source/Luckyrobots/Private/LobbyPlayerController.cpp
Normal file
25
Source/Luckyrobots/Private/LobbyPlayerController.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
// 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);
|
||||
}
|
Reference in New Issue
Block a user