How can I get a Controller working with UE4?

I’m using a controller, I think the trick is to make windows view the controller as a XBox controller, I use the motionjoy driver and the Better DS3 app to make the controller emulate a XBox controller, after that it works great on everything.