I had the issue with Unreale not detecting my gamepad (Logitech Rumblepad 2).
Read some forums and it had something to do with unreal expecting XInput from controller, but not all of them supports that. But there is a workaround for that - there is programm x360ce, which translates inputs from your controller to required format.
More info about that:
https://answers.unrealengine.com/questions/157446/logitech-rumblepad-2-usb-not-working-in-editor.html
http://www.x360ce.com/
Make sure that if you try this you get version of x360ce which coresponds with Unreal version you’re using (e.g x32 or x64)
And then place files it generates in (I also placed .exe file there, might not be necessary)
/EpicGames/(unreal version)/Engine/Binaries/Win64(32)