# appropriately channeling mouse input between level, ui, player controller

**URL:** <https://forums.unrealengine.com/t/appropriately-channeling-mouse-input-between-level-ui-player-controller/1890409>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 5, 2024, 7:23am UTC](https://forums.unrealengine.com/t/appropriately-channeling-mouse-input-between-level-ui-player-controller/1890409 "2024-06-05T07:23:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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 5, 2024, 10:53am UTC](https://forums.unrealengine.com/t/appropriately-channeling-mouse-input-between-level-ui-player-controller/1890409/9 "2024-06-05T10:53:31Z")

</div>

> what do you mean by interface

[https://www.youtube.com/results?search\_query=ue5+interface](https://www.youtube.com/results?search_query=ue5+interface)

Or #7:

> **[Blueprint Communication | Course](https://dev.epicgames.com/community/learning/courses/LWv/unreal-engine-blueprint-communication/ypKl/unreal-engine-blueprint-communication-overview)**
>
> In this course from the Epic Online Learning Team, create more efficient projects by dividing and organizing your Blueprints by functionality. Let’s exa...

Or what I described in the previous posts, I’ve provided tangible working examples of re-routing input via messages that does not muddle the water by implementing EI in actors / widgets. Considering that the PC and the HUD class are _very close_ friends:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/d/fedba62c92046337551a43e40170ce58302a0c31.png)

You could treat it as an UI _hub_ for comms, using this legacy class can often trivialise it.

* * *

Interface is an agnostic communication method, and one of the big three:

- direct comms
- event dispatchers
- interfaces

* * *

> if i do this in the pc i need to pass (some of) it to the hud for the ui to process  
> if i do it in the hud, i need to pass the stuff the ui is not using and intended for the pc to the pc

There is a class **designed** for input processing, the will of the player - the Player Controller. Why fight the system? However, it’s your game, your script. It’s an unorthodox approach, though. Take my advice or leave it, ofc.

With the advent of the EI, you can implement input directly in widgets, actor components and more. However, you then must control the priority and consumption yourself. Here’s another example, focusing on consumption specifically:

> [@"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…

Not sure if this helps or if that’s what you’re after.

---

_[View the full topic](https://forums.unrealengine.com/t/appropriately-channeling-mouse-input-between-level-ui-player-controller/1890409)._
