InputActions no longer fire when SetInputModeUIOnly

I just upgraded my project from 4.12.5 to 4.14.0, and one of the changes was InputModeUIOnly enum changes. When the player opens their Inventory using the InputAction StatsMenu custom InputAction, the StatsMenu Widget is given control and focus with SetInputModeUIOnly. However, in 4.14.0, pressing the InputAction StatsMenu button again never fires the even in the PlayerController again.

In the PlayerController:

And in the PlayerController to give the StatsMenu focus:

116706-screen+shot+2016-11-28+at+23.30.49.png

Once the SetInputModeUIOnly is run, the InputAction StatsMenu event is never run. This worked as expected in 4.12.X, but is not working in 4.14.0.

Hello GrimlessBBS,

This is a known issue. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: Unreal Engine Issues and Bug Tracker (UE-38749)

Make it a great day

The linked issue does not appear to be related to my issue. The linked issue is talking about key presses not being sent to controls (like pressing enter does not “click” a highlighted button). My issue is that my PlayerController stops receiving InputAction events when a UI menu has locked the cursor.

You are correct, I misunderstood the issue on my first pass. However, after taking another look this appears to be working as intended. When setting the input mode to UI only, this means that the game will no longer take input that is not coming from the UI that is focused. I ran a couple of tests in 4.12.5 and the only way I was able to get this to work (in the way your expecting) in that version was to not specify the player controller being used for the input mode when it was set. If you set the input mode to UI only in 4.12.5 and specify the player controller being used, I found that this will exhibit the same (expected) behavior shown in 4.14. If you would like to retain input for both the game and the UI, I would suggest using “Set input mode game and UI” instead. I have also provided a link to documentation that provides more information on the nodes used to change input. I hope that this information helps.

Link: Creating Widgets in Unreal Engine | Unreal Engine 5.1 Documentation

Make it a great day

Great, thank you! That will definitely help to get me on the right track!