# Where is the best place to add the mapping context?

**URL:** <https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 9, 2025, 6:01pm UTC](https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571 "2025-12-09T18:01:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 9, 2025, 6:01pm UTC](https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571/1 "2025-12-09T18:01:22Z")

</div>

Hi!

Where do I have to add the mapping context? In the Player Controller? In the player’s character?

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/0/ed05387a0a96a2b85fd7d6db3e2fb1058699e838.jpeg)

Thanks!

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [December 9, 2025, 6:41pm UTC](https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571/2 "2025-12-09T18:41:31Z")

</div>

Either place is fine, it depends on how you want to control your characters.

We set it up only in the PlayerController, the player controller gets the inputs, then relays them to any controlled characters or vehicles, who all implement a controllable Interface.

So for example, the PlayerController gets “MoveLeft” triggers, then it relays MoveLeft to whatever it is controlling, and anything that implements the controllable interface has MoveLeft functionality.

But setting a different control scheme up in each character type is also a valid way to do it.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 9, 2025, 6:48pm UTC](https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571/3 "2025-12-09T18:48:30Z")

</div>

> [@Shmoopy1701](#):
>
> it depends on how you want to control your characters.

So, if I set it up only in the Player Controller, code like this:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/c/e7c4725a739a26f0669872349e4b192d936a9274.png)

Should be done in Player Controller, isn’t it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [December 9, 2025, 6:51pm UTC](https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571/4 "2025-12-09T18:51:54Z")

</div>

I’m not sure because I don’t use blueprints. But where to do it shouldn’t be too different .🤷

In C++ it is usually in the function PlayerController::SetupInputComponent()

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [December 9, 2025, 7:54pm UTC](https://forums.unrealengine.com/t/where-is-the-best-place-to-add-the-mapping-context/2683571/5 "2025-12-09T19:54:41Z")

</div>

My preference is in the controller along with common UI. You always have a controller, you don’t always have a pawn.

Input events are in the class that uses them.  
So IMC in controller, events in character.

Input component checks: Input-Enabled Actor → Controller → Level → Pawn

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