How to add gamepad controls to dialogue system

I’m trying to add controller support to a dialogue system. It works fine on keyboard, but it ignores the gamepad in the Input mapping. I tried getting it by adding facebutton down on the blueprint, but it messes up the game. It does go through te dialogue then, but when the dialog pops up it disapears and then pops up again and also skips the last line. Also is the tutorial one npc is suppose to spawn, but there are spawning a huge flock of them, something that doesn’t happen when the game is played normally.

Just how do I add gamepad controlls to go throught the dialogue fine, just like the keyboard?

Hello satyendraa, thank you for posting.

I am unsure of what is going on to cause your npc to spawn so erratically. Its possible the button may be pressed many times with the button widget. While you investigate your BPs further, I found a tutorial series you may be able to extract some tips from in regards to UMG and gamepad support. The series is quite long and covers more than what you ask for but there is a lot of useful information here.

WARNING: This is an external link and as the end user, you are responsible should something happen to your device when you choose to click a link or follow steps that are not endorsed by Epic.

Ryan Laley: Unreal Engine 4 Tutorial - Gamepad UMG Control Pt. 1 - Show/Hide Menu

I hope this provides you as much information as you need and more.