Description

From a delegate there is no easy way to access the action that triggered the delegate. Whilst this is mostly inherent (an OnJumped handler implies the Jump action) it would be better to provide direct access to allow sharing of handlers between multiple actions, and reduce delegate handling work for the user.

Suggest leaving the simpler delegates as they are, but indirectly modifying the delegate for FEnhancedInputActionHandlerInstanceSignature by exposing FInputActionInstance::SourceAction as read only for both native and BP as well as exposing an action output node on K2Node_EnhancedInputAction - which already tracks the input action internally.

 

 

Steps to Reproduce

1. Enable enhanced input plugin
2. Create an Input Action Asset
3. Create an Input Mapping Context and map the input action asset to any key
4. Create a custom player controller
5. Add the mapping context to the player controller
6. Place an event for your input action (See attached image)

Result: There is an input action pin on the event that is placed

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-117699 in the post.

1
Login to Vote

Fixed
ComponentUE - Gameplay - Input
Affects Versions5.0-early access
Target Fix5.0
Fix Commit17202524
Main Commit17202524
CreatedJun 9, 2021
ResolvedAug 17, 2021
UpdatedDec 1, 2021