/unreal-dev:unreal-enhanced-inputfrom unreal-dev
Guides setting up Unreal Engine Enhanced Input: creating Input Actions, Mapping Contexts, and C++ bindings. Helps debug input issues like keys doing nothing, host-only firing, or double-fires.
Ships in unreal-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An input action is a data asset, a mapping context ties keys to it, and C++ binds a handler to its trigger events; a key that does nothing is almost always a context that was never added.
The two halves run in different places: the context is added to the local player's subsystem on the machine that owns that player, the bindings are made on the pawn's input component when a PlayerController possesses it. Code that does one half, or does it on the server, reads correctly and moves nothing.
| The situation | Read |
|---|---|
| Setting input up for a new character | The method below, templates/CourierInputConfig.h |
| Which value type, trigger or modifier an action needs; context priority | reference/actions-and-contexts.md |
Where to call AddMappingContext; the binding code; the Build.cs line; default input classes | reference/binding.md |
| "Nothing happens when I press the key", "works for the host only", "fires twice" | Nothing fires below, then reference/debugging-input.md |
| A headless test that drives an action | reference/debugging-input.md §3 |
| Checking a project's C++ set-up before running it | scripts/input_lint.py |
| The pawn, controller and possession order | unreal-gameplay-framework |
| Module and plugin entries in general | unreal-modules-build |
"EnhancedInput" (private, or
public when a public header includes an Enhanced Input header). The Enhanced Input plugin is
enabled by default; a .uproject that lists it with "Enabled": false breaks every step below.UInputAction assets: IA_Move Axis2D, IA_Jump and IA_Vault
Digital). The value type is a contract with the handler.IMC_Courier): one mapping per key, with modifiers per mapping (WASD on
one Axis2D action needs Swizzle Input Axis Values on W and S, Negate on S and A).UCourierInputConfig data asset (templates/), so the character holds one
reference and IsReady() names any empty slot.NotifyControllerChanged (runs on the
server and the owning client on each controller change), skipping a controller without a local
player. Never in a constructor, never in PossessedBy (server only).SetupPlayerInputComponent: Cast<UEnhancedInputComponent>, log if it fails, then
one BindAction per action and trigger event.scripts/input_lint.py on the project, then showdebug enhancedinput in a running
game to see the contexts the local player really has.Steps 5 and 6 for the courier (the full listing with includes is reference/binding.md):
void ACourierCharacter::NotifyControllerChanged()
{
Super::NotifyControllerChanged();
APlayerController* PC = GetController<APlayerController>();
ULocalPlayer* LocalPlayer = PC ? PC->GetLocalPlayer() : nullptr;
if (LocalPlayer && InputConfig && InputConfig->IsReady())
{
if (UEnhancedInputLocalPlayerSubsystem* Subsystem =
LocalPlayer->GetSubsystem<UEnhancedInputLocalPlayerSubsystem>())
{
Subsystem->AddMappingContext(InputConfig->DefaultMappingContext, 0);
}
}
}
void ACourierCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
UEnhancedInputComponent* Input = Cast<UEnhancedInputComponent>(PlayerInputComponent);
if (!Input || !InputConfig || !InputConfig->IsReady())
{
UE_LOG(LogTemp, Error, TEXT("Courier input not bound"));
return;
}
Input->BindAction(InputConfig->MoveAction, ETriggerEvent::Triggered, this, &ACourierCharacter::HandleMove);
Input->BindAction(InputConfig->JumpAction, ETriggerEvent::Started, this, &ACourierCharacter::HandleJumpStarted);
Input->BindAction(InputConfig->JumpAction, ETriggerEvent::Completed, this, &ACourierCharacter::HandleJumpCompleted);
Input->BindAction(InputConfig->VaultAction, ETriggerEvent::Triggered, this, &ACourierCharacter::HandleVault);
}
A handler takes const FInputActionInstance& and reads Instance.GetValue().Get<FVector2D>()
(or Get<bool>(), Get<float>(), Get<FVector>()) to match the action's value type.
| Event | When it fires | Typical use |
|---|---|---|
Started | evaluation begins; before Triggered when both happen in one frame | jump on press |
Ongoing | still being evaluated (a hold not yet long enough) | a charge meter |
Triggered | the triggers report triggered, every tick they do | movement, a completed hold |
Completed | went from Triggered to None this frame | cut the jump on release |
Canceled | evaluation stopped without triggering (a hold let go early) | cancel the charge |
Context priority: when several active contexts map the input an action needs, the highest
priority context is used and the others are ignored. Triggers combine as Explicit, Implicit and
Blocker (reference/actions-and-contexts.md §3).
The causes in the order to suspect them (all thirteen, with fixes: reference/debugging-input.md):
showdebug enhancedinput lists none: the add is in a
constructor, in PossessedBy, behind HasAuthority(), or ran before a local player existed.DefaultInputComponentClass in Config/DefaultInput.ini names a
class that is not UEnhancedInputComponent; the bind function returns early.SetupPlayerInputComponent never ran.Started; the config points at a
different IA_ asset than the context maps.Get<FVector2D>() on a Digital action, or WASD without swizzle.BindAxis("MoveForward", ...) binds a project-settings Axis mapping, not
an Input Action asset.python3 scripts/input_lint.py /path/to/CourierRun
python3 scripts/input_lint.py /path/to/CourierRun --context-in-blueprint # a Blueprint adds the context
python3 scripts/input_lint.py /path/to/CourierRun --strict # warnings fail too
FAIL lines: a module that includes Enhanced Input headers without the Build.cs dependency, the
plugin disabled in the .uproject, bound actions with no AddMappingContext in any C++ file, an
add in a constructor or in PossessedBy, and a default input component class that makes the
cast fail. WARN lines: a public header with only a private dependency, legacy name-based bindings.
It reads no Blueprint and no .uasset; PASS 0 C++ files read is not a pass, and exit 3 says so.
unreal-gameplay-frameworkHandleVault: unreal-gasunreal-modules-buildunreal-editor-pythonunreal-automation-testsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tipoli5890/game-studio --plugin unreal-dev17 skills in this plugin
/unreal-animationUnreal animation: Animation Blueprint or C++ UAnimInstance, NativeUpdateAnimation, montages, slots, sections, notifies and notify states, root motion./unreal-asset-importImport meshes, textures and animation into Unreal by script: AssetImportTask, Interchange pipelines, glTF and FBX options, static or skeletal mesh, budget check./unreal-automation-testsUnreal automation tests: IMPLEMENT_SIMPLE_AUTOMATION_TEST, Automation Spec, latent commands, Automation RunTest on the command line, the JSON report as verdict.