Hehe interesting, didn't expect it would be about that. I have no idea what the newseq and mask info is for or why Mame needs it, but it wasn't always there and makes creating custom cfg's by hand pretty much impossible. You could probably figure out how to calculate this information by taking a look at the Mame source code. The Raw Input System was introduced around 0.117 which is when AHK stopped being able to send keys to Mame. So perhaps you could trying using an older version of Mame with AHK to generate the cfg's and then copy them over to your newer version. Another option might be to compile Mame using the DIRECTINPUT=1 variable which forced Mame to compile using the old input code. I don't believe this is available in newer versions of Mame though, so I have no idea if that would work either. Since neogeo games are all decended from the same parent, you could just use a ctrlr file with the neogeo entry, but I'm sure your aware of that and are not using it for a reason. You can also set up cfg's for games using the source file, cloneof or romof. So there is quite a bit of flexability there. I'm not sure if this will be of any interest to you but I wrote a program recently called "ControlsDat" which was to help in updating Controls.xml file. It's also handy for viewing game's controls and their relation to each other. Anyway you can download it from here