I've always assumed that, if it was easy, there would be loads of commercially available macro-programmable PS3 controllers, even if they had to be wired. As there aren't, the add-on market either feels that no-one would buy them (seems unlikely) or it's too much trouble.