# control mouse input event processing

**URL:** <https://forums.unrealengine.com/t/control-mouse-input-event-processing/1867536>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 22, 2024, 11:10am UTC](https://forums.unrealengine.com/t/control-mouse-input-event-processing/1867536 "2024-05-22T11:10:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [May 22, 2024, 11:10am UTC](https://forums.unrealengine.com/t/control-mouse-input-event-processing/1867536/1 "2024-05-22T11:10:36Z")

</div>

hi  
how would you control by what mouse input events are processed  
my main character moves by means of the mouse  
i also want to do other stuff based on mouse clicks  
so in certain blueprints i would check and work off mouse click events  
i manage to do the latter, only problem is that now and again the character would also move at the same time, when he is not really supposed to, because the mouse click he is reacting to, is not really intended for a move, but to achieve something else  
so i need to control when mouse clicks are processed as character movement and when not  
i suppose i need to make changes in the character blueprint?  
thanks

---

<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:** [May 22, 2024, 11:22am UTC](https://forums.unrealengine.com/t/control-mouse-input-event-processing/1867536/2 "2024-05-22T11:22:37Z")

</div>

The `Enhanced Input` and its mapping contexts allow you to create abstract layers of input. Each with input consumption and priority rules. On top of `Triggers` and `Modifiers`. Takes a while to wrap one’s mind around the system. It’s relatively new.

> **[Enhanced Input in Unreal Engine | Unreal Engine 5.7 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/enhanced-input-in-unreal-engine)**
>
> An overview of the Enhanced Input Plugin in Unreal Engine

Example of WASD:

> [@"Consume input" doesn't work (the input still propagates everywhere)](https://forums.unrealengine.com/t/consume-input-doesnt-work-the-input-still-propagates-everywhere/1213316/4):
>
> 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 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: Think with mapping contexts - abstracted layers of input. I…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 21, 2024, 11:22am UTC](https://forums.unrealengine.com/t/control-mouse-input-event-processing/1867536/3 "2024-06-21T11:22:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
