Skip to main content

AddInputMappingContexts

Apply multiple Input Mapping Contexts.
Inputs
PlayerController
AController*
required
The player controller to add the contexts to. Will attempt to get the LocalPlayer from the controller.
Contexts
TArray<FUDCoreEnhancedInputContextData>
required
The contexts to apply.
bClearPrevious
bool
Whether to clear all previous contexts before applying the new ones.
Outputs
ReturnValue
EUDSuccessStatus
Returns Success if the contexts were successfully applied.

RemoveInputMappingContexts

Remove multiple Input Mapping Contexts.
Inputs
PlayerController
AController*
required
The player controller to remove the contexts from. Will attempt to get the LocalPlayer from the controller.
Contexts
TArray<TSoftObjectPtr<UInputMappingContext>>
required
The contexts to remove.
Outputs
ReturnValue
EUDSuccessStatus
Returns Success if the contexts were successfully removed.

SwapInputMappingContexts

Swap a designated Input Mapping Context with a new one.
Inputs
PlayerController
AController*
required
The player controller to swap the contexts on. Will attempt to get the LocalPlayer from the controller.
PreviousContext
TSoftObjectPtr<UInputMappingContext>
required
The context to swap out.
NewContext
TSoftObjectPtr<UInputMappingContext>
required
The context to swap in.
Priority
int32
The priority to set the new context to.
bUsePreviousPriority
bool
Whether to use the previous context’s priority when adding the new context.
Outputs
ReturnValue
EUDSuccessStatus
Returns Success if the contexts were successfully swapped.