# "Consume input" doesn't work (the input still propagates everywhere)

**URL:** <https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316>\
**Category:** Programming & Scripting\
**Tags:** Input, unreal-engine\
**Created:** [June 28, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316 "2023-06-28T12:02:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisterPixel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/misterpixel/32/629747_2.png) [@MisterPixel](https://forums.unrealengine.com/u/MisterPixel)\
**Post date:** [June 28, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/1 "2023-06-28T12:02:19Z")

</div>

Hi, all! So, inside UE5 I created a FirstPerson template for testing out this issue. Looking at its already-setup Enhanced Input configuration, we can see that moving our character is being accomplished by listening to an Action Input called _IA\_Move_, which belongs to an Enhanced Input Mapping called _IMC\_Default_.

The problem is that if we take a look at the _IA\_Move_ settings, we can clearly see that the _Consume Input_ flag is being checked:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/e/33eacf49df0a3579ced90ca873acc75ee6e89a4c.png)

however, if you use the _Enable Input_ node on the _EventBeginPlay_ event of several Blueprint Actors and then start listening for the triggers of this input’s event:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/f/90fd89959a4955fa75fcbc05b63d332a74ace65f.png)

we notice that **all of them** are perfectly able to respond to the pressed keys belonging to this Input Action (i. e. all of the WASD keys), which is _very strange_, as to me, “consume input” should behave **exactly the opposite** , meaning that the first Actor that gets to react to the trigger of the _IA\_Move_ event should also consume it, leaving all other Actors with no further input to capture (effectively acting as a mask/blocker for any further input processing on those keys).

So, as an example, I added a Print String node on the trigger of IA\_Move throughout several BPs, including: 1x Ball actor, 1x Cone actor, the Level BP, the GameMode BP, the PlayerController BP and the FPS Character BP and they all receive the same input without any issues (I’m walking forwards here by holding down ‘W’, hence the 1.0 value for the forwards-backwards axis):

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/d/47df53338500479ef9365c5b7fb623f8ac16b09d.png)

And in case you’re wondering why my Print nodes have “UE5” as a prefix, it’s because I was curious to see how the old UE4 system behaved under the exact same conditions (not using the Enhanced Input, but the old Input Axis Mapping and then listening for my keys throughout the same BPs as above). And here are the results:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/2/cf20ccb0a390f4027b7a593b9f0585bb8a0f3bc9.png)

As we can see, the (now deprecated) UE4 version works as expected, I’m guessing due to the “_If one InputComponent takes the input, it is not available further down the stack._” statement written in the [official docs](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Input/#:~:text=If%20one%20InputComponent%20takes%20the%20input%2C%20it%20is%20not%20available%20further%20down%20the%20stack.). You can even see the priority stack in that same section:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/d/dcd1988640a04bdd28c4f2d06ecf208a5a117433.png)

What am I missing here?! Please help me out, as I’m stuck with this issue for a week now. Much appreciated! 😊

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 28, 2023, 12:28pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/2 "2023-06-28T12:28:00Z")

</div>

Yeah, it just doesn’t work, eh? 🙂

I thought for a moment, that you could use IA\_Move as many times as you wanted, but it would consume whatever keys you had defined in the _IMC\_Default_, but that’s not the case…

---

<div class="post-metadata">

**Author:** ![MisterPixel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/misterpixel/32/629747_2.png) [@MisterPixel](https://forums.unrealengine.com/u/MisterPixel)\
**Post date:** [June 28, 2023, 12:30pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/3 "2023-06-28T12:30:10Z")

</div>

@ClockworkOcean Well, that’s how UE4 used to do it with its now-deprecated system in the favor of this newer (and apparently broken) one. I’ve updated my main post with a few more paragraphs at the bottom (I went ahead and tried the old UE4 way, as seen above), just in case it helps with the overall picture, if anyone has any clues/ideas… 🫠 Btw, I forgot to mention that I’ve also used the _Enable Input_ node on the _EventBeginPlay_ event of all those BP actors in order to make input listening possible (also added this to the main post). I thought it is obvious, as it won’t work without this, but then decided I should mention it nevertheless, for the sake of completeness, just in case anyone else wants to try this out.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 28, 2023, 3:38pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/4 "2023-06-28T15:38:45Z")

</div>

Imagine I have 2 sets of controls:

- `IMC_Default` (Priority 0) to move around with WASD
- `IMC_Backpack` (Priority 1) to move between backpack slots, also with WASD
- if priorities are equal, the one added last gets to the hardware input first

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/d/03d8d8afa161d37f7e4ae1e00c5f2969de8e9fc2.png)

When I open my backpack and WASD inside it, I’d rather not walk off the cliff, so I add a new Mapping Context with higher priority, so it can intercept Actions associated with keys:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/c/f6cf5b8eb9dae9b8d6f7f454c95267f6aeff9ae9.jpeg)

Think with mapping contexts - abstracted layers of input. It’s not the Input Actions that get priority anymore, its the mapping contexts. The Input Action can be, optionally, consumed within that context:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/7/f67f003ce1c1ae5be694f59028564beffaba9e06.png)

Now I’ll walk off the cliff even with the backback open; it’s not consumed and the `IMC_Default` (Priority 0) will also detect W being pressed.

* * *

I’ve been using this system only for a week, if someone tries to correct me on the above, they’re probably right…

---

<div class="post-metadata">

**Author:** ![MisterPixel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/misterpixel/32/629747_2.png) [@MisterPixel](https://forums.unrealengine.com/u/MisterPixel)\
**Post date:** [June 29, 2023, 6:42pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/5 "2023-06-29T18:42:52Z")

</div>

@Everynone Hmm… how is that different from the _Set Input_ node? Is it like the same, just for the new Enhanced Input in UE5? Here’s a quick reference for what I’m saying:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/a/3ea7292cbdd493f918af716ab7d0e657a5fd80c7.jpeg "WTF Is? Controller: Set Input Mode in Unreal Engine 4 ( UE4 )") ](https://www.youtube.com/watch?v=rP0T-pjzyvs)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 29, 2023, 7:41pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/6 "2023-06-29T19:41:47Z")

</div>

Set Input is for passing input priority between widgets and the player controller. It can also pass focus from widget to widget but there are better ways to that particular thing.

Not sure how EI meshes with widgets, tbh. I am as much of an explorer as you are.

---

<div class="post-metadata">

**Author:** ![Cruce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cruce](https://forums.unrealengine.com/u/Cruce)\
**Post date:** [July 24, 2023, 1:44am UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/7 "2023-07-24T01:44:05Z")

</div>

Just for clarification, the new Enhanced Input system is not working as expected, correct? I am having the same problem with IA\_actions not being consume and causing problems.

Or, are we stuck in UE4 mindset and not using the new Enhanced Input correctly?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 24, 2023, 3:38am UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/8 "2023-07-24T03:38:51Z")

</div>

They are correctly consumed within their mapping context’s priority. See the post above.

---

<div class="post-metadata">

**Author:** ![PaPaParker9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PaPaParker9](https://forums.unrealengine.com/u/PaPaParker9)\
**Post date:** [October 1, 2023, 2:39pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/9 "2023-10-01T14:39:24Z")

</div>

in 5.2, using the VRTemplate I use IMC\_Default with priority 0 and it includes IA\_Grab\_Right and IA\_Grab\_Left. This IMC is added at BeginPlay in VRPawn. Then I created a new IMC\_Override that uses the same IA\_Grab\_Right and IA\_Grab\_Left (both have Consume Input checked). In game, I then add this IMC\_Override with higher priority and I do a grab. I see the new IMC\_Override is activated and then right after IMC\_Default is also activated. I was expecting the input action in IMC\_Default would not be triggered. How am I thinking wrong, please?

Oh, I think when the IMC are added, for input to be consumed, both IMC must be on the same actor. In my case, IMC\_Default is in VRPawn while IMC\_Override is in a different actor. Is this the correct interpretation?

---

<div class="post-metadata">

**Author:** ![basisvector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@basisvector](https://forums.unrealengine.com/u/basisvector)\
**Post date:** [February 2, 2024, 1:08am UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/10 "2024-02-02T01:08:10Z")

</div>

It is specific to VR. Non-VR inputs work fine.

I looked through the enhanced input code and saw that it was correctly updating the bindings according to priority. The old VR binding is no longer present in the array of mappings (EnhancedActionMappings in UEnhancedPlayerInput). Yet the old input action still fires.

When I switched both the old and the new physical input for this action to non-vr controls, like a key, it worked immediately.

Epic, plz fix!

---

<div class="post-metadata">

**Author:** ![basisvector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@basisvector](https://forums.unrealengine.com/u/basisvector)\
**Post date:** [February 8, 2024, 8:08pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/11 "2024-02-08T20:08:36Z")

</div>

Following up with a workaround for priorities in VR, when using OpenXR in UE5.

- Make a superset of ALL the possible contexts that you want to load, and add them to a Player Mappable Input Config.
- Set that Input Config in Project Settings → Plugins → OpenXR → Mappable Input Config for XR.
- In your Pawn, set the Input Config property in Class Defaults to another Playable Mappable Input Config, only including the Input Contexts you want to start the game with.
- At some later point, load a new context with a higher priority.

Check `ShowDebug EnhancedInput` to see if the correct actions are loaded.

---

<div class="post-metadata">

**Author:** ![PaPaParker9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PaPaParker9](https://forums.unrealengine.com/u/PaPaParker9)\
**Post date:** [February 16, 2024, 5:51pm UTC](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/12 "2024-02-16T17:51:25Z")

</div>

thanks basisvector (great user name, btw). Your approach does work, thank you.

I also had the additional complexity between switching between openXR and metaXR plugins. The latter doesn’t use PMI at all. I also found that if I took the default IMC\_Default from the VR template and split it into two but tried to load both IMC when using openXR, my controllers were stuck to the floor. If you try to do the same thing w/ the VRTemplate, it does the same thing. Weird.

Wish there was some good documentation the usage pattern to be used for Enhanced Input. I dredge touching PMI/IMC/IA since something always breaks.
