Think Caver and I are having the same problem evdev didn't work for me unfortunately. I'm using an external usb soundcard to have clear sound and I'm using the HDMI monitor. I'm not sure if this is doing anything to do with the problem.
First, what I would try: boot up with your ipac/minipac and keyboard plugged in, then type lsmod That will list all of the modules loaded. Then restart with the keyboard unplugged and do it again. figure out if there are any modules not being loaded.
as far as I can tell, advancemame doesn't handle controls the way that you are hoping. I think that 'or' is about its extent. You can probably find a utility that will allow you to map multiple buttons to specific combos. There's a utility on windows called 'autohotkey' that lets you do that sort of stuff. There may be a linux based version.
so, the script. The script will run through the advmame.rc file looking for a specific regular expression pattern:
the pattern looks for keyboard[#,text-or-number] preceded by either '] ' or 'scan0] or' and then it requires that it is not followed by ' or keyboard[#,text]'
so basically it is looking for patterns like this: input_map[coin1] keyboard[1,scan0] or keyboard[0,1] input_map[coin2] keyboard[1,2]
and would turn them into this: input_map[coin1] keyboard[1,scan0] or keyboard[0,1] or keyboard[0,1] input_map[coin2] keyboard[0,2] or keyboard[1,2]
but it would ignore these lines: input_map[coin1] joystick[1,1] or keyboard[0,1] input_map[coin2] keyboard[0,2] or keyboard[1,2]
*note: the pattern is not super robust, so you need to make sure that there are no spaces inside of the brackets ( i.e.- keyboard[1,a] not keyboard[1, a] )
cool, I didn't know that it could handle that. yes, the script would break that. You would need to alter the regular expression (regex) in order to account for that. I don't have time right now to look into it, but here's a quick reference guide if you want to take a look. regex doesn't require programming know-how, but it does require patience because it's very easy to accidentally put an extra symbol somewhere or forget a backslash :) https://autohotkey.com/docs/misc/RegEx-QuickRef.htm