IEnhancedInputSubsystemInterface::AddMappingContext

Add a control mapping context.

Windows
MacOS
Linux

References

Module

EnhancedInput

Header

/Engine/Plugins/Experimental/EnhancedInput/Source/EnhancedInput/Public/EnhancedInputSubsystemInterface.h

Include

#include "EnhancedInputSubsystemInterface.h"

Source

/Engine/Plugins/Experimental/EnhancedInput/Source/EnhancedInput/Private/EnhancedInputSubsystemInterface.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintCosmetic, Category="Input")
virtual void AddMappingContext
(
    const UInputMappingContext * MappingContext,
    int32 Priority
)

Remarks

Add a control mapping context.

Parameters

Parameter

Description

MappingContext

A set of key to action mappings to apply to this player

Priority

Higher priority mappings will be applied first and, if they consume input, will block lower priority mappings.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss