See the comment on UInputTrigger::LastValue around issues being a bool type on first tick

Steps to Reproduce
  1. Create two Input Actions, IA_A and IA_B
  2. Create two mapping contexts, IMC_A and IMC_B
  3. Add a mapping to the "Y" key in IMC_A to IA_A, with a pressed trigger
  4. Add a mapping to the "Y" key in IMC_B to IA_B, with a pressed trigger
  5. On begin play, add IMC_A to the player
  6. When IA_A is triggered, add IMC_B and remove IMC_B
  7. When IA_B is triggered, add a print string
  8. PIE
  9. Press and hold Y

Expected result: The IA_B print string does not print until you let go of "Y" and press it again. 

Have Comments or More Details?

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

Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Input
Affects Versions4.
Target Fix5.3
Fix Commit25600737
CreatedNov 11, 2022
ResolvedMay 24, 2023
UpdatedJul 21, 2023
View Jira Issue