Chapter 17

Enhanced Input

The registration step everyone forgets, and where to put it.

In this chapter

  1. The Mapping Context Must Be Registered
  2. Where to Register It
1

The Mapping Context Must Be Registered

The Input Mapping Context must be registered at runtime, or nothing fires. This is the single most common reason Enhanced Input "doesn't work" — the actions are configured correctly and simply never reach the pawn.

On the PlayerController's BeginPlay, or a Pawn's On Possessed, call:

Get Enhanced Input Local Player SubsystemAdd Mapping Context

The subsystem here is a ULocalPlayerSubsystem — see Chapter 14 for why it's reachable from anywhere without a stored pointer.


2

Where to Register It

← Chapter 16 ↑ Index Chapter 18 →