How do I get Gamepad Input Actions in Blueprint

I’m trying to get actions for Gamepad input in Blueprint, but it doesn’t give me any actions when I’m trying to search for it. What am I suppose to do to get this?

How did you setup inputs in project settings?

Did you set an input in project settings? If not go to project settings > Engine > Input and set an action mapping to anything - example “interact” then you can set a game pad button as the mapping. Go back into the blueprint and you should be able to call the action mapping for example

In your case you can call the event “input action recipe 1 in your blueprint

Ok this looks fine, where are you trying to call the inputs?
Are you in a Pawn / Player controller?
You should be able to find them typing “recipe”

I’m trying to call them in main menu widget (WBP_MainMenu).

Ok it should work there

What exactly is your problem?

If your still having problems I wouldn’t recommend doing this but you can call the event directly

Did you call it from the mapping or is it a custom made?

No, It shouldn’t.
Widgets are among the few classes that don’t support input actions.

You should call them inside a PlayerController or Pawn, in other classes you have to call a function to enable inputs.

Here’s a tutorial if you need it.

What I’m trying is to use a gamepad to navigate through menu’s. But the game has been build for pc and uses mouse hover and click interactions. I’m trying to build a focus on the buttons with the controller.

2 Likes

In my menu widget it works

This is a bit complicated but it should work if you follow the steps HOW to CREATE a GAMEPAD Menu Unreal Engine 4 - YouTube

Can you please show a screenshot? Because AFAIK it’s not possible:

I am using ue5 but I don’t think that should make a difference

It does! I didn’t know it but it’s nice to know!
In UE5 I am able to call the events from the UserWidget, thanks for the discovery!

It wasn’t possible in UE4, there are many other posts like this.

Ok np I’ve been using ue5 for awhile that I didn’t realise that it wasn’t possible in ue4

1 Like

@satyendraa did the video help you?