Yes, there is a solution to run retoarch on S805 and S905(X) based devices. More details here and the latest version of the addons here
Your wired PS3 controller will probably work out of the box with Retroarch (not while in Kodi, but when you launch retroarch). You can find a lot of tips and post questions on the thread I mentioned above.
Thanks for answering me, I"ll take a look at the mentioned threads. You guys rock