Enhanced Input

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Input is where a game meets its player, and it is the part of a project most often rebuilt late: a gamepad is added, keys are rebound, a reading mode needs different keys than walking. Enhanced Input is Unreal’s input system built for that: instead of hard-wiring keys to code, the project describes what the player can do as assets (Input Actions), which keys do it in which situation as other assets (Input Mapping Contexts), and lets modifiers and triggers shape the raw signals in between.

The facts were checked in November 2026 against the Unreal Engine 5.8 documentation (5.8 was released on 2026-06-17; the latest hotfix at the time of writing is 5.8.4). Enhanced Input is a plugin that is enabled by default in current projects and works on every platform Unreal supports (keyboard and mouse, gamepads, touch and XR controllers). The C++ examples need the module dependency shown below. The running example is the Bookshelf: an IA_Grab action in the context IMC_Bookshelf that lets ABookshelfCharacter pull a book (see bookshelf.glb for the shared model). The character class is in Gameplay Framework; the engine-neutral theory of input devices and mapping is in Physics, Audio and Input Basics.

The pipeline from key to event

flowchart LR Raw["Raw input from a key, stick or touch"] --> Mod["Modifiers on the mapping"] Mod --> Trig["Triggers on the mapping and the action"] Trig --> Act["Input Action value and trigger state"] Act --> Ev["Events Started, Ongoing, Triggered, Completed, Canceled"] Ev --> Bind["C++ BindAction or Blueprint event node"] Ctx["Input Mapping Context with a priority"] --> Mod
Figure 1. A raw key value becomes an action event

The stages, in order:

  1. A physical input (a key, a thumbstick axis, a touch point) produces a raw value every tick it is active.

  2. An Input Mapping Context decides which Input Action each physical input belongs to. The context that was added with the highest priority wins when several map the same key.

  3. Modifiers preprocess the raw value: invert it, scale it, apply a dead zone, reorder its axes.

  4. Triggers decide whether the processed value activates the action this tick: on press, on release, after a hold, on a double tap.

  5. The Input Action carries the value (of its declared type) and the trigger state, and raises events that the game code or a Blueprint reacts to.

Modifiers and triggers can be placed on a single key mapping (specific to one device and key) or on the Input Action itself (shared by every mapping of the action). The action-level modifiers are applied to the final action value.

Input Actions

An Input Action is a data asset that links the input system to game code. It replaces the legacy Action and Axis mapping names. Create one in the Content Browser with Add > Input > Input Action. Its properties:

Property Meaning

Value Type

What the action returns: Digital (bool) for on and off, Axis1D (float), Axis2D (FVector2D) for thumbsticks and mouse movement, or Axis3D (FVector) for motion controllers.

Triggers

Trigger qualifiers that apply to the whole action (see below). With none, the input fires every tick that it is active.

Modifiers

Modifiers applied to the final action value.

Consume Input (bConsumeInput)

Whether the action swallows the keys mapped to it (true by default) or lets them pass through to lower-priority bound actions.

Trigger When Paused (bTriggerWhenPaused)

Whether the action may fire while the game is paused.

Reserve All Mappings (bReserveAllMappings)

The action’s mappings should not be overridden automatically by higher-priority contexts; a user must remove the mapping first.

Accumulation Behavior

How the action’s value is calculated when several key mappings feed the same action at once (for example W and the gamepad stick): the enum EInputActionAccumulationBehavior chooses between taking the highest absolute value and accumulating.

Description

A localized text describing the action.

Player Mappable Key Settings

Present when players may rebind the action; see the section on user settings.

Trigger events

An action reports its state with an ETriggerEvent. Epic describes the values this way:

Event Meaning

None

No significant trigger state changes occurred and there are no active device inputs.

Started

An event has begun trigger evaluation. Triggered may also occur in the same frame, but Started always fires first.

Ongoing

Triggering is still being processed (a hold that has not reached its time yet).

Triggered

Triggering occurred after one or more processing ticks. This is the event bound most often.

Canceled

Triggering has been canceled (a hold released too early).

Completed

The state has transitioned from Triggered to None this frame: triggering has finished.

Three timelines: a Hold trigger with the key held one second shows Started, Ongoing then Triggered each tick and Completed on release; a Hold released early shows Started, Ongoing and Canceled; a Pressed trigger shows Triggered on the press frame only
Figure 2. Trigger events over time for Hold and Pressed

Input Mapping Contexts

An Input Mapping Context (IMC) is a collection of Input Actions that represents a player state: walking, driving, reading a book, using a menu. Inside the asset, each action lists the physical inputs bound to it, and each of those carries its own modifiers and triggers. Create one with Add > Input > Input Mapping Context.

Contexts are added to and removed from a local player at run time, each with an integer priority. Higher values take priority over lower values: when two active contexts map the same key, the higher one wins, and (with Consume Input on) the lower mapping does not see the key. Epic’s advice is to keep mutually exclusive contexts for mutually exclusive states (driving versus on foot), so that input never collides.

Three stacked mapping contexts with priorities 2, 1 and 0; the key E is mapped to IA_Close in the top context so IA_Grab in the middle context does not fire until the top context is removed
Figure 3. Mapping contexts are evaluated from the highest priority down

Contexts are registered per local player, not globally. The Enhanced Input Local Player Subsystem is the object that adds them; in C++ you reach it through the ULocalPlayer. The UEnhancedInputWorldSubsystem is the corresponding world-level subsystem. Adding a context while keys are held ignores those keys until they are released by default, so that a held key does not immediately trigger the new context; check the options of AddMappingContext when this matters.

Platform-specific input uses the Enhanced Input Platform Data asset (a Blueprint of UEnhancedInputPlatformData), which contains a mapping-context redirect map that swaps contexts per platform when mappings rebuild. Assign it under Project Settings > Enhanced Input > Platform Settings > Input Data; the settings are written to each platform’s DefaultInput.ini and can be hotfixed.

Modifiers

A modifier changes the raw value before triggers see it. The standard modifier classes in the plugin are:

Class (editor name) What it does

UInputModifierNegate (Negate)

Inverts the value per axis. Used for the left and down keys of a WASD layout and for an inverted mouse Y.

UInputModifierSwizzleAxis (Swizzle Input Axis Values)

Reorders the axes (for example YXZ), so a one-axis key such as W can feed the Y axis of a two-axis action.

UInputModifierDeadZone (Dead Zone)

Ignores small values near zero, including a radial dead zone for thumbsticks.

UInputModifierScalar (Scalar)

Multiplies the value per axis (sensitivity).

UInputModifierScaleByDeltaTime (Scale By Delta Time)

Multiplies by the frame time, for values that must be per second.

UInputModifierSmooth, UInputModifierSmoothDelta

Smooth the value over several frames.

UInputModifierResponseCurveExponential, UInputModifierResponseCurveUser

Reshape the value with an exponent or with a curve asset.

UInputModifierFOVScaling

Scales the value by the field of view.

UInputModifierToWorldSpace (Input Space to World Space)

Converts axial input to world space.

A WASD key set for an Axis2D action IA_Move is the textbook example. Every key feeds one action, each with a different modifier combination:

Key Modifiers on the mapping Value delivered to IA_Move

W

Swizzle Input Axis Values (YXZ)

(0, 1)

S

Swizzle Input Axis Values (YXZ), then Negate

(0, -1)

D

none

(1, 0)

A

Negate

(-1, 0)

Gamepad left stick

Dead Zone

(x, y) in -1 to 1

A custom modifier subclasses UInputModifier and overrides ModifyRaw_Implementation; it can read the owning UEnhancedPlayerInput and therefore game state. The one below scales look input by a sensitivity that lives in the Bookshelf settings.

// InputModifierLookSensitivity.h
#pragma once

#include "CoreMinimal.h"
#include "InputModifiers.h"
#include "InputModifierLookSensitivity.generated.h"

/** Scales look input by a sensitivity that the player can change at run time. */
UCLASS(meta = (DisplayName = "Bookshelf Look Sensitivity"))
class BOOKSHELF_API UInputModifierLookSensitivity : public UInputModifier
{
	GENERATED_BODY()

public:
	/** Multiplier applied to the value; 1 leaves it unchanged. */
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings", meta = (ClampMin = "0.0"))
	float Sensitivity = 1.0f;

protected:
	virtual FInputActionValue ModifyRaw_Implementation(const UEnhancedPlayerInput* PlayerInput,
		FInputActionValue CurrentValue, float DeltaTime) override;
};

// InputModifierLookSensitivity.cpp
#include "InputModifierLookSensitivity.h"

FInputActionValue UInputModifierLookSensitivity::ModifyRaw_Implementation(
	const UEnhancedPlayerInput* PlayerInput, FInputActionValue CurrentValue, float DeltaTime)
{
	// Keep the value type (bool, 1D, 2D or 3D) and scale every axis.
	return FInputActionValue(CurrentValue.GetValueType(), CurrentValue.Get<FVector>() * Sensitivity);
}

Triggers

A trigger decides whether processed input activates the action this tick. Their results are None, Ongoing or Triggered. By default, with no trigger, input fires every tick that it is active. Triggers have three types:

  • Explicit triggers succeed on their own (any one success is enough).

  • Implicit triggers must all succeed (for example the second key of a chord).

  • Blocker triggers force the action to fail whenever they succeed.

Class (editor name) Behaviour

UInputTriggerDown (Down)

Fires every tick while the input is above the actuation threshold. This is the behaviour of an action with no trigger.

UInputTriggerPressed (Pressed)

Fires once, when the input passes the actuation threshold.

UInputTriggerReleased (Released)

Fires when the input drops back below the threshold.

UInputTriggerHold (Hold)

Fires after the input has been held for HoldTimeThreshold seconds, and is Ongoing before then. bIsOneShot chooses between one firing and a firing every tick afterwards.

UInputTriggerHoldAndRelease (Hold And Release)

Fires when the input is released after being held long enough.

UInputTriggerTap (Tap)

Fires when the input is pressed and released quickly.

UInputTriggerRepeatedTap (Repeated Tap)

Fires on a repeated tap, such as a double tap.

UInputTriggerPulse (Pulse)

Fires repeatedly at an interval while the input is held.

UInputTriggerChordAction (Chorded Action)

Fires only while another Input Action is active; an implicit trigger for modifier-key combinations.

UInputTriggerChordBlocker

A blocker used with chords.

UInputTriggerTimedBase

The base class for timed triggers. It does not return Triggered on its own; subclasses override UpdateState.

A custom trigger extends the base trigger class (or the timed base) and overrides its state update; the engine’s own UInputTriggerHold is the reference implementation (GetSupportedTriggerEvents, UpdateState_Implementation).

Setting it up in C++

Add the module to the game module’s Build.cs (see Project Structure and Modules):

// Bookshelf.Build.cs (excerpt)
PublicDependencyModuleNames.AddRange(new string[]
{
	"Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput"
});

Enhanced Input is enabled in the project’s plugins by default. The player-input class and the input-component class are chosen in Project Settings > Input > Default Classes (EnhancedPlayerInput and EnhancedInputComponent), or in DefaultInput.ini:

[/Script/Engine.InputSettings]
DefaultPlayerInputClass=/Script/EnhancedInput.EnhancedPlayerInput
DefaultInputComponentClass=/Script/EnhancedInput.EnhancedInputComponent

The character holds the assets as UPROPERTY references, so a designer assigns them in BP_BookshelfCharacter and the code never contains an asset path. It adds the context to the local player when a controller takes over and binds one callback per event it cares about. The callback receives an FInputActionValue (or an FInputActionInstance that also exposes the action and the elapsed time); Value.Get<T>() reads it as bool, float, FVector2D or FVector.

// BookshelfCharacter.h (excerpt)
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "BookshelfCharacter.generated.h"

class UInputAction;
class UInputMappingContext;
struct FInputActionValue;

UCLASS()
class BOOKSHELF_API ABookshelfCharacter : public ACharacter
{
	GENERATED_BODY()

public:
	/** Adds the reading context (priority 2) while a book is open, removes it afterwards. */
	void EnterReadingMode();
	void ExitReadingMode();

protected:
	virtual void NotifyControllerChanged() override;
	virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;

	void Move(const FInputActionValue& Value);
	void Look(const FInputActionValue& Value);
	void Grab(const FInputActionValue& Value);

	UPROPERTY(EditDefaultsOnly, Category = "Input")
	TObjectPtr<UInputMappingContext> BookshelfContext;

	UPROPERTY(EditDefaultsOnly, Category = "Input")
	TObjectPtr<UInputMappingContext> ReadingContext;

	UPROPERTY(EditDefaultsOnly, Category = "Input")
	TObjectPtr<UInputAction> MoveAction;

	UPROPERTY(EditDefaultsOnly, Category = "Input")
	TObjectPtr<UInputAction> LookAction;

	UPROPERTY(EditDefaultsOnly, Category = "Input")
	TObjectPtr<UInputAction> JumpAction;

	UPROPERTY(EditDefaultsOnly, Category = "Input")
	TObjectPtr<UInputAction> GrabAction;

private:
	UEnhancedInputLocalPlayerSubsystem* GetInputSubsystem() const;
};
// BookshelfCharacter.cpp (excerpt)
#include "BookshelfCharacter.h"
#include "EnhancedInputComponent.h"
#include "EnhancedInputSubsystems.h"
#include "InputActionValue.h"
#include "InputMappingContext.h"
#include "GameFramework/Controller.h"
#include "GameFramework/PlayerController.h"
#include "Engine/LocalPlayer.h"
#include "Bookshelf.h"

UEnhancedInputLocalPlayerSubsystem* ABookshelfCharacter::GetInputSubsystem() const
{
	if (const APlayerController* PlayerController = Cast<APlayerController>(GetController()))
	{
		return ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PlayerController->GetLocalPlayer());
	}
	return nullptr;
}

void ABookshelfCharacter::NotifyControllerChanged()
{
	Super::NotifyControllerChanged();

	// Runs on the owning client when a controller possesses the pawn.
	if (UEnhancedInputLocalPlayerSubsystem* Subsystem = GetInputSubsystem())
	{
		if (BookshelfContext)
		{
			Subsystem->AddMappingContext(BookshelfContext, 0);
		}
	}
}

void ABookshelfCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);

	UEnhancedInputComponent* EnhancedInput = Cast<UEnhancedInputComponent>(PlayerInputComponent);
	if (!ensureMsgf(EnhancedInput, TEXT("Set the default input component class to EnhancedInputComponent")))
	{
		return;
	}

	EnhancedInput->BindAction(MoveAction, ETriggerEvent::Triggered, this, &ABookshelfCharacter::Move);
	EnhancedInput->BindAction(LookAction, ETriggerEvent::Triggered, this, &ABookshelfCharacter::Look);
	EnhancedInput->BindAction(JumpAction, ETriggerEvent::Started, this, &ACharacter::Jump);
	EnhancedInput->BindAction(JumpAction, ETriggerEvent::Completed, this, &ACharacter::StopJumping);

	// Started fires once per press, even if the action has no Pressed trigger.
	EnhancedInput->BindAction(GrabAction, ETriggerEvent::Started, this, &ABookshelfCharacter::Grab);
}

void ABookshelfCharacter::Move(const FInputActionValue& Value)
{
	const FVector2D Axis = Value.Get<FVector2D>();
	if (Controller == nullptr)
	{
		return;
	}

	const FRotator YawRotation(0.0, Controller->GetControlRotation().Yaw, 0.0);
	AddMovementInput(FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X), Axis.Y);
	AddMovementInput(FRotationMatrix(YawRotation).GetUnitAxis(EAxis::Y), Axis.X);
}

void ABookshelfCharacter::Look(const FInputActionValue& Value)
{
	const FVector2D Axis = Value.Get<FVector2D>();
	AddControllerYawInput(Axis.X);
	AddControllerPitchInput(Axis.Y);
}

void ABookshelfCharacter::Grab(const FInputActionValue& Value)
{
	UE_LOG(LogBookshelf, Log, TEXT("Grab pressed"));
	TryInteract();
}

void ABookshelfCharacter::EnterReadingMode()
{
	if (UEnhancedInputLocalPlayerSubsystem* Subsystem = GetInputSubsystem())
	{
		if (ReadingContext)
		{
			Subsystem->AddMappingContext(ReadingContext, 2);
		}
	}
}

void ABookshelfCharacter::ExitReadingMode()
{
	if (UEnhancedInputLocalPlayerSubsystem* Subsystem = GetInputSubsystem())
	{
		if (ReadingContext)
		{
			Subsystem->RemoveMappingContext(ReadingContext);
		}
	}
}

BindAction has several overloads. The common one takes the action, an ETriggerEvent, the object and a member function pointer; others take a FName function name for a UFUNCTION, extra payload arguments, or a handler that receives the FInputActionInstance. BindActionInstanceLambda binds a lambda that receives the action instance. Every binding returns a binding object, and RemoveBindingByHandle removes one by its handle. BindActionValue binds only to read an action’s current value (GetBoundActionValue), which suits an action you poll in Tick rather than react to.

Procedure: create IA_Grab and its context

  1. In the Content Browser choose Add > Input > Input Action and name it IA_Grab.

  2. Open IA_Grab, leave Value Type at Digital (bool) and leave Triggers empty (or add Pressed, so that the action fires once per press).

  3. Create an Input Mapping Context named IMC_Bookshelf. Add a mapping, choose IA_Grab and bind the keyboard key E (and a gamepad button, if you like).

  4. Open BP_BookshelfCharacter and, in Class Defaults > Input, assign IMC_Bookshelf and IA_Grab. At run time the character adds the context in NotifyControllerChanged and binds the action in SetupPlayerInputComponent.

  5. Press Play and check the binding with showdebug enhancedinput (see below).

Four numbered panels: create an Input Action IA_Grab, set its value type to Digital, create IMC_Bookshelf and map IA_Grab to the E key, then add the context to the local player and bind the action
Figure 4. Creating IA_Grab and mapping it to a key

The Blueprint equivalent

In a Blueprint class, the Add Mapping Context node (with the Enhanced Input Local Player Subsystem from the player controller) registers the context, and the action appears as an event node that exposes one execution pin per trigger event. Right-click the event graph and search for the action by name.

Two Blueprint graphs: Begin Play leads to Add Mapping Context using the subsystem from Get Player Controller, and the Enhanced Input Action IA_Grab event node with Triggered, Started and Completed execution pins feeds Grab Book
Figure 5. Blueprint equivalent of the C++ setup

Player-mappable keys and user settings

A player who rebinds keys needs the bindings stored somewhere. An Input Action that players may rebind has Player Mappable Key Settings with a stable Name and a display name; the project enables user settings in the Enhanced Input developer settings (bEnableUserSettings, with the UserSettingsClass to use). The UEnhancedInputUserSettings object then maps and unmaps keys per profile and provides the functions a settings screen needs: MapPlayerKey, UnMapPlayerKey, ResetAllPlayerKeysInRow, FindCurrentMappingForSlot, FindMappingsInRow, SetActiveKeyProfile and GetCurrentKeyProfile. It also provides a registration point for mapping contexts from plugins that are not loaded yet, such as Game Feature plugins. Older functions on the subsystem, such as AddPlayerMappedKeyInSlot, are deprecated in favor of the user settings object.

// Rebinding Grab to the F key from a settings screen (excerpt)
void ABookshelfCharacter::RebindGrabToF()
{
	UEnhancedInputLocalPlayerSubsystem* Subsystem = GetInputSubsystem();
	UEnhancedInputUserSettings* Settings = Subsystem ? Subsystem->GetUserSettings() : nullptr;
	if (!Settings)
	{
		return;
	}

	FMapPlayerKeyArgs Args;
	Args.MappingName = TEXT("Grab");              // the Name in IA_Grab's Player Mappable Key Settings
	Args.Slot = EPlayerMappableKeySlot::First;
	Args.NewKey = EKeys::F;

	FGameplayTagContainer FailureReason;
	Settings->MapPlayerKey(Args, FailureReason);
	Settings->SaveSettings();
}

A Player Mappable Input Config (PMI) is the older, simpler idea: a preset that bundles mapping contexts and their priorities so that they can be added together, such as default and southpaw aiming layouts. It remains useful for presets; per-player rebinding belongs in the user settings.

CommonUI and the 5.8 unification

Menus have their own input needs (navigate, accept, back) that must coexist with gameplay keys. CommonUI has its own input layer, Common Input, and until recently the two systems needed duplicate data. The Unreal Engine 5.8 release notes announce that Enhanced Input and Common Input/UI were unified: cross-platform input handling is simpler, duplicate data assets are no longer needed, debugging is more straightforward, and the update brings more reliable event processing, better widget binding behavior, expanded virtual key support and fixes for trigger edge cases. It also adds an Input Debugger for Enhanced Input UI and more extensibility.

Epic’s CommonUI-with-Enhanced-Input page describes the integration points. Enable it under Project Settings > Game > Common Input Settings > Enable Enhanced Input Support. Input Actions then replace data table rows as the input source of CommonButtonBase, CommonActionWidget (which can show a key prompt for a gameplay action) and Common UI Input Data (the default navigation actions). Generic actions, such as Accept and Back, are bound to UI elements and do not broadcast their Enhanced Input events, so that a button does not fire gameplay by accident. An Input Action points to its metadata (a class implementing ICommonMappingContextMetadataInterface, for example UCommonMappingContextMetadata) through its Player Mappable Key Settings. Activatable Widgets can name mapping contexts to apply on activation and remove on deactivation. The page itself still carries a cautionary note from the UE 5.2 era about limited testing, so read it together with the 5.8 release notes and test the integration on your target platforms before relying on it. The widgets themselves are covered in UMG, Slate and CommonUI.

Debugging and testing input

  • showdebug enhancedinput shows the action and axis mappings in use; showdebug devices shows the connected input devices.

  • Input.+key Gamepad_FaceButton_Bottom X=1 Y=0 starts simulated input and Input.-key Gamepad_FaceButton_Bottom stops it. Key names are FKey names, which the key picker in the mapping context shows.

  • UEnhancedPlayerInput::InjectInputForAction injects a value for an action from code, which makes input testable in automation tests (see Testing and Automation).

  • The 5.8 Input Debugger (Enhanced Input UI) is the tool to watch an action’s state, value and the contexts in play; check which actions currently consume a key before assuming a binding is missing.

Where input goes: the stack

Input reaches game code through input components arranged in a stack, and a component that handles an input consumes it. Epic’s input overview gives the order of the stack, highest priority first: Actors with Accepts Input enabled (most recently enabled first), then controllers, then level script, then pawns. Enhanced Input is a different layer than this stack: the mapping context priority decides which action a key means, and the input component stack decides which object receives the action.

Migrating from BindAction and BindAxis

Enhanced Input is backward compatible: legacy Action and Axis mappings keep working, so a project can move over piece by piece. Epic’s input overview says that Enhanced Input replaces the legacy bindings and that a project using it should bind only Input Actions. The translation is mechanical:

Legacy Enhanced Input

Project Settings action mapping (Grab) bound with BindAction("Grab", IE_Pressed, this, &ABookshelfCharacter::Grab)

An IA_Grab Input Action (Digital) in a mapping context, bound with BindAction(GrabAction, ETriggerEvent::Started, this, &ABookshelfCharacter::Grab). A Pressed trigger on the action gives the same once-per-press behaviour with Triggered.

IE_Released

ETriggerEvent::Completed, or a Released trigger with Triggered.

Axis mapping (MoveForward scale +1 and -1, MoveRight)

One Axis2D action IA_Move; W, S, A and D with Swizzle and Negate modifiers; the callback reads an FVector2D.

Axis Scale field

A Scalar modifier, or Negate for -1.

BindAxis("Turn")

IA_Look, Axis2D, with a Negate modifier on Y for mouse look and a Dead Zone on the gamepad stick.

Platform-specific mappings in settings

Separate mapping contexts, swapped per platform with Enhanced Input Platform Data.

Remapping through UInputSettings at run time

UEnhancedInputUserSettings with player-mappable key settings.

Enhanced Input became the default in UE 5.1: the 5.1 release notes enable the plugin by default and describe the automatic upgrade of projects that use the default input classes (the console variable EnhancedInput.bEnableAutoUpgrade disables it).

Common mistakes

  • Binding Triggered on an action with no trigger and expecting one call. With no trigger the action fires every tick the key is down, so a grab runs sixty times a second. Bind Started, or add a Pressed trigger.

  • Forgetting AddMappingContext. The action asset exists, the bindings exist, nothing fires. Add the context to the local player, and check it with showdebug enhancedinput.

  • Adding the context in BeginPlay of a pawn that has no controller yet. On a client the controller may arrive later; use NotifyControllerChanged or PawnClientRestart.

  • Casting the input component without checking. Cast<UEnhancedInputComponent> returns nullptr when the project still uses the legacy component class; the project’s default input component class must be EnhancedInputComponent.

  • Missing EnhancedInput in Build.cs. The headers are found but the linker fails on UEnhancedInputComponent.

  • A higher-priority context swallowing a key. A context with Consume Input on hides the same key from lower contexts; remove the context when the mode ends, or turn Consume Input off for actions that should share keys.

  • Reading a value as the wrong type. Value.Get<FVector2D>() on a Digital action returns a vector built from the bool; declare the action’s Value Type to match what the code reads.

  • Inverted look or reversed movement. The mapping needs Negate or Swizzle; fix the modifier, not the code.

  • Hard-coding keys in C++ for gameplay. Hard-coded EKeys bypass contexts, platform data and rebinding.

  • Mixing legacy BindAxis and Enhanced Input in one project by accident. A mixed project binds the same key twice. Pick one per action.

  • Using Enhanced Input for UI navigation without the CommonUI integration. Menus then react to gameplay keys; use the generic actions of the CommonUI integration.

Performance notes

  • An action is evaluated every tick it has active inputs. The cost is small, but an action with many mappings, smoothing modifiers and triggers is evaluated every tick on every local player; keep contexts lean and remove contexts that no longer apply.

  • A callback runs on the game thread; keep it to setting state and let Tick or a timer do the heavy work. Started and Completed callbacks run once, Triggered runs every tick that the action is triggered.

  • A stateful trigger such as Hold costs an instance per mapping; reuse actions rather than creating many near-identical ones.

  • Adding and removing contexts rebuilds the control mappings for the local player at the end of the frame; do it on state changes (entering and leaving reading mode), not every frame.

  • Use Started instead of polling GetBoundActionValue in Tick for buttons; poll only for continuous values such as a trigger pressure.

What changed recently

Version Change

UE 5.1 (2022)

The Enhanced Input plugin is enabled by default, and projects that use the default input classes are upgraded automatically (the console variable EnhancedInput.bEnableAutoUpgrade turns that off). The legacy system keeps working.

UE 5.3 and later

Player-mappable keys moved to UEnhancedInputUserSettings with key profiles; older subsystem functions such as AddPlayerMappedKeyInSlot are deprecated in its favor.

UE 5.8 (2026)

Enhanced Input and Common Input/UI are unified, which removes the need for duplicate data assets and brings more reliable event processing, better widget binding behavior, expanded virtual key support and trigger edge-case fixes. An Input Debugger for Enhanced Input UI and added extensibility arrive. PICO controller bindings were configured for Input Mapping Contexts.

Where the books are outdated

Three of the books bind input, and all of them predate Enhanced Input as the default: Blueprints Visual Scripting for Unreal Engine (second edition, Marcos Romero and Brenden Sewell, Packt, August 2019; chapter 6; Unreal Engine 4.20 to 4.22), Unreal Engine 4.X By Example (Benjamin Carnall, Packt, July 2016; chapter 5; Unreal Engine 4.10 and 4.11) and Unreal Engine 5 Game Development with C++ Scripting (Zhenyu George Li and E. Wyn Roberts, Packt, August 2023; chapters 4 and 7; Unreal Engine 5.0 and Visual Studio 2022).

Book and chapter What the book shows What is current in UE 5.8

BPV ch. 6

Input events in Blueprints from the project’s legacy Action and Axis mappings

Enhanced Input Actions and mapping contexts, with the action as an event node. The legacy mappings still work but a new project binds Input Actions only.

CAR ch. 5 to 9

BindAction and BindAxis with names from Project Settings, in a SetupPlayerInputComponent

UEnhancedInputComponent::BindAction with a UInputAction and an ETriggerEvent, and the context added through the local player subsystem (see the character above).

LIR ch. 4 and 7

The legacy BindAction and BindAxis on UE 5.0

Enhanced Input. The book targets UE 5.0, before the plugin became the default in 5.1 and long before the 5.8 CommonUI unification and the Input Debugger.

See also