Having problems getting Enhanced Inputs to work

Hi there,
I’'m fairly new to development in UE and I started working on a project and stumbled upon a barrier that I’m not able to figure out alone.

The problem is that no matter I try, the inputs aren’t firing and the event of the listener isn’t happening (tested with ‘Print string’ )


(I did the nessesary step of delaring the Input Mapping Context, as shown on the top of the screenshot and also checked if the Default Input Component Class and the Default Player Input Class (in the project settings) is set to EnhancedInputComponent and EnhancedPlayerInput.

Here’s the IA and the IMC


I’m understanding the concept, but that error that I’m unable to solve is haunting me… (I’ll just use the UE4 Input System if that error persists tbh…)

I have the same problem, and I’ve been trying to solve it all day
One thing I’ve found is that enhanced input works as long as you don’t have an empty project

We need to navigate to “Maps & Modes” in the Project Settings. Under “Default Modes”, set it to “YourGameMode”. Only in this way will your enhanced mapping work. Go ahead and give it a try. I’ve spent a whole day struggling with this problem. I’ve looked through a lot of materials and video tutorials, but none of them helped. I even thought there was something wrong with the blueprint process. Fortunately, I’ve finally solved this problem.

Did you try replacing the Get Controller node with a Get Player Controller node? (e.g. Get Player Controller at index 0)?

What you’re doing should work but I sometimes had problems with that particular node not working, whereas the get player controller node always worked for me.

Also that way you can skip the cast to node.