Is it possible to use the RPi I/O pins as inputs for joystick/buttons/credit/etc when using Mame4All? If not, is M4A compileable on RPi? Or do I need a cross compiler?
Rpi has 15 IO pins that you can use immediately for all PiMAME menu and its emulator, including mame4all... I use 4 pins for dpad keys, 6 pins for JB1 to JB6, left 5 pins for credit P1, start P1, Pause, Tab for config and Escape button.
This is very doable. That's what I did with my project.
I couldn't get Pikeyd to work consistently with PiMAME either, so I used Adafruit's retrogame to map RPi's GPIOs, and I wrote a driver for MCP23017 extension chip, since I needed more inputs. You can find it here: https://github.com/guyz/piarcade