2022-03-17 16:10:59 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "EnhancedInputEditorSettings.h"
|
2023-01-12 01:48:34 -05:00
|
|
|
#include "EnhancedInputDeveloperSettings.h"
|
2022-03-17 16:10:59 -04:00
|
|
|
#include "EnhancedPlayerInput.h"
|
2023-01-12 01:48:34 -05:00
|
|
|
#include "HAL/IConsoleManager.h"
|
2022-03-17 16:10:59 -04:00
|
|
|
|
2022-09-28 01:06:15 -04:00
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(EnhancedInputEditorSettings)
|
|
|
|
|
|
2022-03-17 16:10:59 -04:00
|
|
|
namespace UE::EnhancedInput::Private
|
|
|
|
|
{
|
|
|
|
|
namespace ConsoleVariables
|
|
|
|
|
{
|
|
|
|
|
static bool bShouldLogAllInputs = false;
|
|
|
|
|
static FAutoConsoleVariableRef CVarShouldLogAllInputs(
|
|
|
|
|
TEXT("EnhancedEditorInput.bShouldLogAllInputs"),
|
|
|
|
|
bShouldLogAllInputs,
|
|
|
|
|
TEXT("Should each InputKey call be logged?"),
|
|
|
|
|
ECVF_Default);
|
|
|
|
|
|
|
|
|
|
static bool bAutomaticallyStartConsumingInput = false;
|
|
|
|
|
static FAutoConsoleVariableRef CVarAutomaticallyStartConsumingInput(
|
|
|
|
|
TEXT("EnhancedEditorInput.bAutomaticallyStartConsumingInput"),
|
|
|
|
|
bAutomaticallyStartConsumingInput,
|
|
|
|
|
TEXT("Should the UEnhancedInputEditorSubsystem be started as soon as it is inialized?"),
|
|
|
|
|
ECVF_Default);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// UEnhancedInputEditorProjectSettings
|
|
|
|
|
UEnhancedInputEditorProjectSettings::UEnhancedInputEditorProjectSettings(const FObjectInitializer& Initializer)
|
|
|
|
|
: Super(Initializer)
|
|
|
|
|
, DefaultEditorInputClass(UEnhancedPlayerInput::StaticClass())
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// UEnhancedInputEditorSettings
|
|
|
|
|
UEnhancedInputEditorSettings::UEnhancedInputEditorSettings()
|
|
|
|
|
: bLogAllInput(false)
|
|
|
|
|
, bAutomaticallyStartConsumingInput(false)
|
2023-05-09 16:28:48 -04:00
|
|
|
// By default only show the triggered event
|
|
|
|
|
, VisibleEventPinsByDefault(static_cast<uint8>(ETriggerEvent::Triggered))
|
2022-03-17 16:10:59 -04:00
|
|
|
{
|
|
|
|
|
}
|
2022-09-28 01:06:15 -04:00
|
|
|
|