If the return value of a trigger goes from ETriggerState::Ongoing to ETtriggerState::None, without returning a ETriggerState::Triggered, then there should be a "cancelled" event that is fired when Enhanced Input evaluates the state of the trigger.
However, for Input Actions' who are no longer mapped to anything, they just get totally removed from the Action Instance Data cache. Instead, we should "zero-out" the value of these mappings and process their triggers one last time before removal, so that their input triggers fire the "canceled" or "completed" events respectively. This would be more in line with what an end user expects to happen when their mappings are rebuilt. We should maybe even do this
Result: "Started" and "Ongoing" prints will happen
Expected: "Started", "Ongoing" and a "Canceled" will print on the screen
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-211095 in the post.
0 |
Component | UE - Gameplay - Input |
---|---|
Affects Versions | 5.4 |
Target Fix | 5.5 |
Fix Commit | 33264481 |
---|
Created | Apr 1, 2024 |
---|---|
Resolved | Apr 26, 2024 |
Updated | Apr 30, 2024 |