I am facing an issue where I am able to use the gamepad in the editor but it’s not working in the packaged build. After that I have figured out that it’s working if the steam is not opened and steam overlay isn’t there. So basically this issue is because of steam layered input. So to resolve this you need to open steam then click on steam tab->Settings->Controller and then setup the controller settings, there you can also test input then. Here is an example
After doing this my gamepad is working fine.