Navigation
API > API/Plugins > API/Plugins/EnhancedInput > API/Plugins/EnhancedInput/UEnhancedInputComponent
Description
Binds a lambda expression to receive the input action value form an input event. Example: InputComponent->BindActionValueLambda( TestAction, ETriggerEvent::Triggered, const [FInputActionValue](API/Plugins/EnhancedInput/FInputActionValue)& InputActionValue { // Do you work here! });
| Name | BindActionValueLambda |
| Type | function |
| Header File | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/EnhancedInputComponent.h |
| Include Path | #include "EnhancedInputComponent.h" |
template<typename FunctorType, typename... VarTypes>
FEnhancedInputActionEventBinding & BindActionValueLambda
(
const UInputAction * Action,
ETriggerEvent TriggerEvent,
FunctorType && InFunctor,
VarTypes &&... Vars
)