Have you checked out RetroPie, the distribution mentioned in the article? In my experience, using a PS3 controller with that consisted of connecting the controller via a USB cable, selecting 'configure controller' from the main menu, and mapping all the buttons. All in all that took maybe a minute or two.