UEnhancedPlayerInput::InjectInputForAction

Input simulation via injection. Runs modifiers and triggers delegates as if the input had come through the underlying input system as FKeys. Applies action modifiers and triggers on top.

Choose your operating system:

Windows

macOS

Linux

References

Module

EnhancedInput

Header

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

Include

#include "EnhancedPlayerInput.h"

Source

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

Syntax

void InjectInputForAction
(
    const UInputAction * Action,
    FInputActionValue RawValue,
    const TArray< UInputModifier * > & Modifiers,
    const TArray< UInputTrigger * > & Triggers
)

Remarks

Input simulation via injection. Runs modifiers and triggers delegates as if the input had come through the underlying input system as FKeys. Applies action modifiers and triggers on top.