# Input Action not working

**URL:** <https://forums.unrealengine.com/t/input-action-not-working/778939>\
**Category:** Blueprint\
**Tags:** Input, unreal-engine, Blueprint, question\
**Created:** [February 26, 2023, 1:34pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939 "2023-02-26T13:34:27Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Screll3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Screll3](https://forums.unrealengine.com/u/Screll3)\
**Post date:** [February 26, 2023, 1:34pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/1 "2023-02-26T13:34:27Z")

</div>

I created a new first-person project. At first it worked, but then something went wrong. Input works on the character, but not on the weapon component. Add mapping context is called, but IA\_Shoot call does not happen

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/2/fb24c35f2c31de162f492d25a1f19d5a8fd60412.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/7/65774fb6bce414f7d9a88827b15a816e6a4e5e2a.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/f/a8f0b619094abae34d18492f23cf3ec3f7fbae82.png)

---

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [February 26, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/2 "2023-02-26T14:33:35Z")

</div>

Hi @Screll3

If you have it assigned on more than one component is it possible the first instance is consuming the input?

Make sure its not on the actor and the weapon. You only need it on one of them

I MAY be totally wrong in my logic tho 🤣

---

<div class="post-metadata">

**Author:** ![Screll3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Screll3](https://forums.unrealengine.com/u/Screll3)\
**Post date:** [February 26, 2023, 2:49pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/3 "2023-02-26T14:49:00Z")

</div>

But this code was in the first person template.

---

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [February 26, 2023, 3:03pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/4 "2023-02-26T15:03:25Z")

</div>

un modified? have you moved or changed anything?

---

<div class="post-metadata">

**Author:** ![Screll3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Screll3](https://forums.unrealengine.com/u/Screll3)\
**Post date:** [February 26, 2023, 3:18pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/5 "2023-02-26T15:18:58Z")

</div>

I don’t think I’ve touched anything that brakes inputs. Just changed the location of BP\_Weapon\_Component. It shouldn’t affect the inputs, should it?

---

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [February 26, 2023, 3:25pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/6 "2023-02-26T15:25:55Z")

</div>

> [@Screll3](#):
>
> Input works on the character, but not on the weapon component

That sounds like you are using the same input action for 2 things? Which is why i asked

Only the character needs to know about shooting the weapon, it then either processes the firing itself or fires an event (pun intended) to the weapon to tell IT to fire a projectile

So without seeing what the input action it attached to i cannot say why it wont fire

Also is the player controller getting assigned the input mapping? have you attached a print node to the fail pin on the cast to make sure?

The mapping may be getting triggered but the player controller may not have it assigned if that cast failed. I assign the input mapping INSIDE my player controller so it targets SELF

---

<div class="post-metadata">

**Author:** ![Screll3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Screll3](https://forums.unrealengine.com/u/Screll3)\
**Post date:** [February 26, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/7 "2023-02-26T15:29:58Z")

</div>

I created a new first person project and everything works there, although the code is the same

---

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [February 26, 2023, 3:33pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/8 "2023-02-26T15:33:17Z")

</div>

There is something amiss somewhere its easy to accidently break or change something when new, at least the new project works for you!

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [May 2, 2023, 8:26am UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/9 "2023-05-02T08:26:18Z")

</div>

I’ve been having a similar issue. I clone a working input mapping context, without making any changes, and use the new clone instead of the old (working) context. But now suddenly none of the events are received anymore. Even though the two contexts are identical, consisting of the same actions and mappings etc.

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [May 3, 2023, 7:36am UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/10 "2023-05-03T07:36:30Z")

</div>

This issue doesn’t affect keyboard input seems like, but it’s affecting my Oculus Touch controller. Whether this issues affects other controllers or gamepads, I cannot say.

---

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [May 4, 2023, 9:10am UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/11 "2023-05-04T09:10:04Z")

</div>

Hi @useronym

Whe you cloned your mapping contexts and actions , did you set the mapping in your player bp or your player controller to use them?

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [May 4, 2023, 2:07pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/12 "2023-05-04T14:07:31Z")

</div>

Sure did!

As mentioned keyboard actions in the new input mapping context work well enough, but anything from my Quest Touch controllers gets ignored.

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [June 7, 2023, 10:53pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/13 "2023-06-07T22:53:23Z")

</div>

Hi there @Screll3, hope you’re well!

This topic has been moved from **International** to **Programming & Scripting: Blueprint**.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing!

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [June 8, 2023, 1:42pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/14 "2023-06-08T13:42:23Z")

</div>

I finally figured this out. When using the OpenXR plugin, you have to create a input mapping actions config that lists all the contexts that will then be available for use. Assign this config in OpenXR plugin settings.

There really should be a warning printed when trying to use a mapping context which is not included in the mapping context settings.

---

<div class="post-metadata">

**Author:** ![OCxDC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OCxDC](https://forums.unrealengine.com/u/OCxDC)\
**Post date:** [July 16, 2023, 4:47pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/15 "2023-07-16T16:47:21Z")

</div>

Thank you! How did you eventually track that down?

---

<div class="post-metadata">

**Author:** ![c0ntrarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0ntrarian](https://forums.unrealengine.com/u/c0ntrarian)\
**Post date:** [March 11, 2024, 9:28pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/16 "2024-03-11T21:28:13Z")

</div>

Struggled with this for a day. I created a new IMC, IA, and even a new project. I could not get this to work at all. @useronym has the right answer almost. Even after adding a custom IMC to this VRTemplate, I was not able to get it to function correctly.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/f/66f14a1681b9c6e1f6b60b4c055ffe852c28ec45.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/2/212911d4d42c1e82bf28e65b641fb6e614bcdb4b.png)

If you are still having issues, after adding this IMC to the template, delete any custom Input Actions and readd them. I’m able to get it working somewhat. I even restarted the engine because this is 100% buggy. It even says it in VRPawn:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/1/e91e5b2436a2b47ed2832b3f6953c7b0958ea019.png)

Be careful with using Input Mappings maybe until next update. This will definitely pull your hair out a bit.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/2/aa28142f6e4b827e0c491034d2874df8f300879d.png)

To add on top of that, when you create IMC’s and move them to different folders or rename them, UE5 just spits out errors. This is very hard to trust and could lead to a nightmare finding a bug.

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

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [March 13, 2024, 12:35pm UTC](https://forums.unrealengine.com/t/input-action-not-working/778939/17 "2024-03-13T12:35:47Z")

</div>

One more thing: make sure you have unique config names if you’re switching between multiple ones. Some of these “names” or “comments” are actually unique identifiers for OpenXR.
