The following is my configuration (/etc/retroarch.cfg) to get retroarch and imame4all-libretro working fully with an IPAC2 controller (which emulates a standard keyboard). There is no need to patch the imame4all-libretro code unless you wish to enable the additional functionality (such as TAB to acc...