# "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:** 1\
**Showing post:** 4

<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…

---

_[View the full topic](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316)._
