# Error "can't open InputActionValue.h"

**URL:** <https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908>\
**Category:** C++\
**Tags:** unreal-engine, UE5, CPP, question\
**Created:** [May 2, 2023, 2:25pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908 "2023-05-02T14:25:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [May 2, 2023, 2:25pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/1 "2023-05-02T14:25:54Z")

</div>

Hey there, I’m working on an Empty Project in UE5 and when I try to add the enhanced input system I get error: “can’t open InputActionValue.h” and I have already added the “EnhancedInput” string to the Build.cs file. What else am I missing?

 ![UE5_Error_Capture_02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/4/4c45706ea940ee46636e1447a693c7146bf99ed1.png)  
 ![UE5_Error_Capture_01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/c/a5c629fc4b29e0d74f8f3eb02c1f5b9df01d9a48.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 2, 2023, 8:14pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/2 "2023-05-02T20:14:00Z")

</div>

have you added the module “EnhancedInput” to you build file in PublicDependencyModuleNames?

example part inside of build file:

```auto
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "EnhancedInput" });

```

Always look at the module segment in the documentation to see what you need

> **[FInputActionValue](https://docs.unrealengine.com/5.1/en-US/API/Plugins/EnhancedInput/FInputActionValue/)**

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [May 2, 2023, 9:26pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/3 "2023-05-02T21:26:07Z")

</div>

Yes. I stated that in the OP but I have updated the images to show that more clearly. The only thing I am not including is the “HeadMountedDisplay” since it is not needed for my build.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 2, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/4 "2023-05-02T21:36:11Z")

</div>

Is `InputActionValue.h` in your path:

```auto
Your Unreal engine install directory\Engine\Plugins\EnhancedInput\Source\EnhancedInput\Public\InputActionValue.h

```

Do you have your game config set to use Enhanced input?

in DefaultInput.ini

```auto
[/Script/Engine.InputSettings]
// lots of earlier config
DefaultPlayerInputClass=/Script/EnhancedInput.EnhancedPlayerInput

```

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [May 2, 2023, 10:07pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/5 "2023-05-02T22:07:34Z")

</div>

Yes. It is enabled by default in 5.1.1.

It works fine if I build one of the templates (third person or first person). I only have the issue on an empty project. I have been dissecting a third person project to see what else I could be missing. So far, I am at a loss.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 3, 2023, 6:59am UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/6 "2023-05-03T06:59:07Z")

</div>

I think you just need to recompile your project.  
I did a test empty project and before recompile VS also underlined the inputactionvalue.h

[WoeArena.zip](https://forums.unrealengine.com/uploads/short-url/liFekoHFAofhMot5drJLGy6AfFL.zip) (11.7 KB)  
(gen vs project and compile)  
It compiles no problem.

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [May 3, 2023, 9:11pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/7 "2023-05-03T21:11:27Z")

</div>

It “appears” to compile from editor with success, but the error still persists in VS and I can’t launch solution.

Rebuilding doesn’t help.

I will continue to fiddle with it and see what I can get working but it concerns me that I can’t launch from VS, as that is generally the preferred method.

EDIT

I am at this point able to compile and run solution from VS. I started from an empty project and added in the header, etc before running anything else just to see if it would. I have since added in the rest of my code and done error checks. It runs, however, the error “Can’t open InputActionValue.h” still shows. It may be just an intellisense issue, but it only shows up on my project, not the pre-builds.

 ![UE5_Error_Capture_03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/e/02ef45c8f86ad42826ee76fc378ba6bf523fcebe.png)

For the moment, I will be using the old input system until Epic completely removes it.

---

<div class="post-metadata">

**Author:** ![Zone-space](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zone-space](https://forums.unrealengine.com/u/Zone-space)\
**Post date:** [January 2, 2024, 11:14pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/8 "2024-01-02T23:14:13Z")

</div>

I had the same issue! I managed to fix it by doing the following steps:

1. Close VS/UE
2. Delete the `/Binaries` folder and the `.sln` file
3. Right click on the `.uproject` file and generate VS project files
4. Reboot VS and it should work.

---

<div class="post-metadata">

**Author:** ![tselcetel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tselcetel](https://forums.unrealengine.com/u/tselcetel)\
**Post date:** [February 25, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/9 "2025-02-25T15:56:19Z")

</div>

i did just that, and now im getting this message  
UdemyTotorial could not be compiled. Try rebuilding from source manually.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 25, 2025, 4:24pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908/10 "2025-02-25T16:24:00Z")

</div>

Right click you uproject file and regenerate project. Then run the generated sln file. Set the project to your WoeArena project and run with or without debugging.
