WorksDocumentation

Configure Enhanced Input Actions and Mappings

Enable Enhanced Input

InputAction and InputMappingContext tools also require EnhancedInput. Creating either asset type requires the InputEditor module.

Input actions and mapping contexts

TypeToolsPurpose and main parameters
InputActionGetInputAction, CreateInputAction, SetInputActionRead settings and their Trigger, Modifier, and PlayerMappable instances; edit with ExpectedSettings, ExpectedTriggers, ExpectedModifiers, ExpectedPlayerMappableKeySettings, and the corresponding new Properties, Triggers, Modifiers, and PlayerMappableKeySettings.
InputMappingContextGetInputMappingContext, CreateInputMappingContext, SetInputMappingContextRead settings, ordered default Mappings, and version-supported MappingProfileOverrides; edit with ExpectedSettings, ExpectedMappings, new Properties, and complete new Mappings. Versions that support profiles also require ExpectedMappingProfileOverrides and complete new MappingProfileOverrides.

Instance format and engine versions

Input Trigger, Modifier, and PlayerMappable settings are instances owned by the asset, rather than ordinary object references. Replace an instance using the shape { "ClassPath": "/Script/EnhancedInput.InputTriggerHold", "Properties": {} }. Arrays retain input order, and PlayerMappableKeySettings accepts that object shape or null. Each InputMappingContext mapping contains Properties, Triggers, and Modifiers, with optional PlayerMappableKeySettings. MappingProfileOverrides is an object mapping profile names to complete mapping arrays. UE 5.8 exposes profiles; UE 5.2 has no such field and rejects profile parameters. First read bProfileOverridesSupported and the complete old values for the current engine from GetInputMappingContext.

To change one default key mapping, read the InputMappingContext first. Edit that entry in the complete new array, keeping the other entries and their order. Send the complete old array too. If your engine version supports profiles, prepare the full old and new profile configurations as well. Preview the change, apply it, and read it back before saving separately; see the preview and save workflow.