Binding Mouse Left Click to Gamepad Button

I have been having an issue that I have not found a fix for within 5.4. I am trying to set up the ability to use the gamepad to control the mouse cursor. I can move it around the screen, and when the cursor hovers over the buttons, it shows that it is hovered, but I cannot click using the gamepad face button bottom. In the past I know there was a way to add more buttons to the Click Event Keys array, but I can not find a way to add additional items into the array. Is there a solution that anyone can give?

1 Like

hey @Sw1ftW1ngs how are you?

I think you can do something like this in your Character Blueprint:

As you can see, you can use Press Pointer Key and Release Pointer Key to convert any gamepad button into a “left click”.

“Widget Interaction” is a component you should add in your character blueprint and assign the corresponding widget to it.

Let me know if this helps you!

Hey. Unfortunately, I had tried this before making the post. I think my issue is that I am using UI widgets, and the widget interaction is looking for clickable items in the 3D world. At least that’s what it seems like with my lack of experience.

1 Like

Haha I’m just like you :grinning_face_with_smiling_eyes:

1 Like