Description

The enhanced input events defined on the widget will no longer be triggered after the widget is recreated. Until the widget is added with AddToViewport, input events will be triggered correctly. If the widget is removed with RemoveFromParent, input events will not be triggered correctly afterwards even if the widget is added to the viewport again. 

 

Workaround:

Comment out StopListingForAllInputActions() in UUserWidget::NativeDestruct();.  

Steps to Reproduce

Connect the gamepad to PC in advance.

  1. Opent the attached repro project
  2. Play in editor in ReproMap
  3. Press [Gamepad Face Button Right] button, print [Triggered IA_Action]
  4. Press [Gamepad Special Right] button, add widget to viewport
  5. Press [Gamepad Special Right] button, remove widget from viewport
  6. Press [Gamepad Special Right] button, re-add widget to viewport
  7. Press [Gamepad Face Button Right] button

Result:
Not print [Triggered IA_Action].
Expected:
Print [Triggered IA_Action].

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentUE - Gameplay - Input
Affects Versions5.5.15.5
Target Fix5.6
CreatedDec 19, 2024
UpdatedJan 24, 2025
View Jira Issue