So for a game like pacman to disable diagonals for both joysticks I can do...
UP=UP OR R NOT LEFT NOT RIGHT NOT D NOT G
LEFT=LEFT OR D NOT UP NOT DOWN NOT R NOT F
etc etc
Close. Mame uses Ors to separate groups. So as shown mame sees:
UP = (UP) OR (R NOT LEFT NOT RIGHT NOT D NOT G)
etc
So up-right is fine for the first group, so mame will treat stick 1 as an 8-way and stick 2 as a 4-way
as long as stick 1 isn't used.
You want:
UP = UP NOT LEFT NOT RIGHT OR R NOT D NOT G
LEFT = LEFT NOT UP NOT DOWN OR D NOT R NOT F
A little more human readable:
UP = (Up not Left not Right) OR (R not D not G)
It's easier to edit the cfg file though if you want a more complicated line like..
I find hand editing the cfg easy too, but using mame's UI isn't too hard for those who like GUIs, either.
The map I suggested:
For UP: enter, up, right, right, left, left, wait about 1 second for mame to register, R, D, D, G, G, wait.
(repeat for other directions)
OTOH, I will often most of the above in a test editor.