@derebo You can enter the menu on a keyboard initially, and then under Input (general) the first item is Config Menu which can be changed to a joypad button

Note that lr-mame2003 is a better mame emulator for the rpi3 though (Supports more games) - along with lr-fbalpha