Enhanced input problem on blank project

Hello all,

I am using Unreal Engine 5.1.1 and can’t get the Enhanced Input plugin to work on a blank project.
If I create a project from the 3rd person template, it works perfectly fine, I can use the #include “InputActionValue.h” correctly inside any CPP class I create. But whenever I try to create a Blank project (C++), I can’t include any of the Enhanced Input plugin headers.
It tells me that it can’t find any of them.

I don’t know if I’m missing something, but the plugin is correctly checked inside the plugins, I can create Input Actions and Input Mapping Context but I can’t include the plugin’s headers in my source files.

I tried removing Saved, Intermediate and Binaries folders to rebuild them all again but it dit not help.

As I did some work in my project, I don’t really want to export all my sources to a brand new project based on the 3rd person template.

The documentation is not quite helpful as it only explains basic Enhanced Input features.

If anyone can help me or had similar issues, I’m goind kind of mad :frowning:.

Check these

  1. Check in the project setting to see if it is set to Enhanced Input

  1. Check the Module in YourProjectName.Build.cs

it should have “EnhancedInput” in PublicDependency ModuleNames.AddRange()

PublicDependencyModuleNames.AddRange(new string { “Core”, “CoreUObject”, “Engine”, “InputCore”, “HeadMountedDisplay”, “EnhancedInput” });

1 Like

Thank you for your quick answer!

It indeed missed the reference in the build.cs file !
That is some stuff I still need to verify before looking up in the forum.
Many thanks.

Glad it helped!