> I want to do what it says I want to do in the OP: > > I want to write a program which traps controller-port reads and feeds it controller > values taken from a file.
MAME has 'autoboot' functionality and such which can send commands to machines. I believe that's done with the lua scripting in some form.
As already mentioned, it also already has input recording / playback functionality behind -record and -playback
I think your best bet would be to study the way the lua scripts work if you want to do this from scratch for your own purpose, although I'm not really sure why you'd want to do it. I asked because it seemed like you were suggesting it as a way to learn MAME, rather than because you needed the functionality.
Either way, it's not an area I'm familiar with, as I tend to do driver development, so I can't be of further assistance here.
|